File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build :
12
+ # Add "id-token" with the intended permissions.
13
+ permissions :
14
+ contents : ' read'
15
+ id-token : ' write'
12
16
13
17
runs-on : ubuntu-latest
14
18
strategy :
18
22
19
23
steps :
20
24
- uses : actions/checkout@v4
25
+
26
+ - uses : ' google-github-actions/auth@v2'
27
+ with :
28
+ project_id : ' cluster-storage'
29
+ workload_identity_provider : ' projects/1097862457753/locations/global/workloadIdentityPools/github-actions-pfio-ci-tasks/providers/github'
30
+ service_account :
' [email protected] '
31
+ - name : ' Set up Google Cloud SDK'
32
+ uses : ' google-github-actions/setup-gcloud@v2'
33
+ - name : ' Check Bucket accessibility'
34
+ run : |
35
+ gcloud storage ls gs://pfn-pfio-test-bucket/ --recursive
36
+
21
37
- name : Set up Python ${{ matrix.python-version }}
22
38
uses : actions/setup-python@v5
23
39
with :
Original file line number Diff line number Diff line change 9
9
.tox
10
10
11
11
* ~
12
+
13
+ # Ignore generated credentials from google-github-actions/auth
14
+ gha-creds- * .json
You can’t perform that action at this time.
0 commit comments