upgrade to 1.0.0 broke the ssh connection

This issue has been tracked since 2022-11-10.

TL;DR

after we update to the release 1.0.0 our workflow broken with the follwoing error

ERROR: (gcloud.compute.ssh) User [None] does not have permission to access users instance [None] (or it may not exist): End user credentials must match the user specified in the request. Request for user [ None] does not match the credential for [[email protected]].

Expected behavior

No response

Observed behavior

No response

Action YAML

the snippet workflow code is


  - id: auth
      name: Authenticate to Google Cloud
      uses: google-github-actions/[email protected] # v0.8.1
      with:
        # Default is to generate a key file, which is automatically configured for use with gcloud.
        workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
        service_account: ${{ env.SERVICE_ACCOUNT }}

    - uses: google-github-actions/[email protected] # v0.6.0
      with:
        project_id: ${{ env.PROJECT_ID }}

    - name: Install gke-gcloud-auth-plugin
      if: ${{ env.BASTION_ACCESS == 'true' }}
      run: gcloud --quiet components install gke-gcloud-auth-plugin

    - uses: hashicorp/[email protected] # 2.0.0
      with:
        terraform_version: 1.1.9
        terraform_wrapper: false

    - name: connect to bastion
      if: ${{ env.BASTION_ACCESS == 'true' }}
      run: |
        gcloud compute ssh --zone ${{ env.BASTION_ZONE }} ${{ env.BASTION_NAME}} --tunnel-through-iap --project ${{ env.PROJECT_ID }} -- -N -D 8118 &
        sleep 60

Log output

ERROR: (gcloud.compute.ssh) User [None] does not have permission to access users instance [None] (or it may not exist): End user credentials must match the user specified in the request. Request for user [ None] does not match the credential for [[email protected]].

Additional information

No response

sethvargo wrote this answer on 2022-11-10

Hi @cpanato - we had a bug in setup-gcloud 1.0 around exported credentials. Can you try google-github-actions/[email protected] please?

cpanato wrote this answer on 2022-11-10

Hi @cpanato - we had a bug in setup-gcloud 1.0 around exported credentials. Can you try google-github-actions/[email protected] please?

will try, thanks for the quick response

cpanato wrote this answer on 2022-11-10

thanks that fix the issue

More Details About Repo
Owner Name google-github-actions
Repo Name setup-gcloud
Full Name google-github-actions/setup-gcloud
Language TypeScript
Created Date 2019-11-05
Updated Date 2023-03-23
Star Count 1505
Watcher Count 65
Fork Count 548
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date