Skip to content

Commit 79bb42d

Browse files
committed
add new auth to main action
1 parent e41bf78 commit 79bb42d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ env:
1010
jobs:
1111
create-tables:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: 'read'
15+
id-token: 'write'
1316
steps:
1417
- name: Check out repository code
1518
uses: actions/checkout@v3
1619

1720
- id: 'auth'
18-
uses: 'google-github-actions/auth@v0'
21+
uses: 'google-github-actions/auth@v2'
1922
with:
20-
project_id: ${{ secrets.GCP_PROJECT_ID }}
21-
credentials_json: ${{ secrets.GCP_SA_KEY }}
23+
service_account: '[email protected]'
24+
workload_identity_provider: 'projects/569883598760/locations/global/workloadIdentityPools/github/providers/mimic-code'
2225

2326
- name: 'Set up Cloud SDK'
2427
uses: 'google-github-actions/setup-gcloud@v0'

0 commit comments

Comments
 (0)