Skip to content

Commit de5b664

Browse files
authored
Create gcp-identity-test.yaml
1 parent 4e65aff commit de5b664

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)