Skip to content

Commit 8f94b15

Browse files
cpcloudtswast
andauthored
ci(google-auth): use workload identity federation instead of json (#10342)
Co-authored-by: Tim Sweña (Swast) <[email protected]>
1 parent 2e1aa79 commit 8f94b15

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/ci-data.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242

4343
- uses: google-github-actions/auth@v2
4444
with:
45-
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
45+
project_id: "ibis-gbq"
46+
workload_identity_provider: "${{ vars.WIF_PROVIDER_NAME }}"
4647

4748
- uses: google-github-actions/setup-gcloud@v2
4849

.github/workflows/ibis-backends-cloud.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ on:
1515
types:
1616
- labeled
1717

18-
permissions:
19-
# this allows extractions/setup-just to list releases for `just` at a higher
20-
# rate limit while restricting GITHUB_TOKEN permissions elsewhere
21-
contents: read
22-
2318
env:
2419
FORCE_COLOR: "1"
2520
SQLALCHEMY_WARN_20: "1"
@@ -79,6 +74,13 @@ jobs:
7974
key: snowpark
8075
extras:
8176
- --extra snowflake
77+
# this allows extractions/setup-just to list releases for `just` at a higher
78+
# rate limit while restricting GITHUB_TOKEN permissions elsewhere
79+
permissions:
80+
contents: "read"
81+
# required for GCP workload identity federation
82+
id-token: "write"
83+
8284
steps:
8385
- name: checkout
8486
uses: actions/checkout@v4
@@ -126,7 +128,8 @@ jobs:
126128

127129
- uses: google-github-actions/auth@v2
128130
with:
129-
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
131+
project_id: "ibis-gbq"
132+
workload_identity_provider: "${{ vars.WIF_PROVIDER_NAME }}"
130133

131134
- name: setup databricks credentials
132135
if: matrix.backend.name == 'databricks'

.github/workflows/ibis-benchmarks.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343

4444
- uses: google-github-actions/auth@v2
4545
with:
46-
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
46+
project_id: "ibis-gbq"
47+
workload_identity_provider: "${{ vars.WIF_PROVIDER_NAME }}"
4748

4849
- uses: google-github-actions/setup-gcloud@v2
4950

0 commit comments

Comments
 (0)