Skip to content

Commit 96273bc

Browse files
committed
chore: Fix the google auth github action.
1 parent 1fa6322 commit 96273bc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ jobs:
6464
NODEPOOL_SERVICEACCOUNT_EMAIL:${{ vars.GOOGLE_CLOUD_PROJECT }}/NODEPOOL_SERVICEACCOUNT_EMAIL
6565
TFSTATE_STORAGE_BUCKET:${{ vars.GOOGLE_CLOUD_PROJECT }}/TFSTATE_STORAGE_BUCKET
6666
WORKLOAD_ID_SERVICEACCOUNT_EMAIL:${{ vars.GOOGLE_CLOUD_PROJECT }}/WORKLOAD_ID_SERVICEACCOUNT_EMAIL
67-
- name: Set up Cloud SDK
68-
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
67+
- id: auth
68+
name: Authenticate to Google Cloud
69+
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2.1.13
70+
with:
71+
workload_identity_provider: ${{ vars.PROVIDER_NAME }}
72+
service_account: ${{ vars.SERVICE_ACCOUNT }}
73+
access_token_lifetime: 600s
6974
- name: Setup Go
7075
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
7176
with:

0 commit comments

Comments
 (0)