We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e65aff commit de5b664Copy full SHA for de5b664
.github/workflows/gcp-identity-test.yaml
@@ -0,0 +1,28 @@
1
+name: Deploy to GCP
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
7
+permissions:
8
+ id-token: write
9
+ contents: read
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repo
17
+ uses: actions/checkout@v4
18
19
+ - name: Authenticate to Google Cloud
20
+ id: auth
21
+ uses: google-github-actions/auth@v2
22
+ with:
23
+ token_format: "id_token"
24
+ workload_identity_provider: "projects/123456789012/locations/global/workloadIdentityPools/github-pool/providers/github"
25
+ service_account: "[email protected]"
26
27
+ - name: Check auth
28
+ run: gcloud auth list
0 commit comments