File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77
8+ permissions :
9+ id-token : write
10+ contents : read
11+
12+ env :
13+ GCP_WORKLOAD_IDENTITY_PROVIDER : " projects/224545243904/locations/global/workloadIdentityPools/gh-nuclia/providers/gh-nuclia-provider"
14+ GCP_SERVICE_ACCOUNT : " github-actions@nuclia-internal.iam.gserviceaccount.com"
15+
816jobs :
917 publish-doc :
1018 name : Publish documentation
@@ -13,12 +21,16 @@ jobs:
1321 - name : Checkout repository
1422 uses : actions/checkout@v4
1523
16- - uses : google-github-actions/auth@v2
24+ - name : Authenticate to Google Cloud
25+ id : gcp-auth-models-mount
26+ uses : google-github-actions/auth@v2
1727 with :
18- credentials_json : ' ${{ secrets.GCP_CREDENTIALS }}'
28+ workload_identity_provider : " ${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
29+ service_account : " ${{ env.GCP_SERVICE_ACCOUNT }}"
30+ token_format : access_token
1931
2032 - name : ' Set up Cloud SDK'
21- uses : ' google-github-actions/setup-gcloud@v0 '
33+ uses : ' google-github-actions/setup-gcloud@v2 '
2234
2335 - name : Push SDK docs to GCS
2436 run : gsutil rsync -r ./docs gs://${{ secrets.DOCS_STORAGE }}/python-sdk
You can’t perform that action at this time.
0 commit comments