Skip to content

Commit f8c0317

Browse files
committed
fix: switch github actions to workload identity
1 parent 2ea460d commit f8c0317

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
needs: [linux, macos]
5555
if: github.event_name != 'pull_request'
5656
runs-on: ubuntu-latest
57+
permissions:
58+
id-token: write
59+
contents: read
5760
steps:
5861
- uses: actions/checkout@v3
5962
- uses: actions/setup-python@v4
@@ -64,8 +67,8 @@ jobs:
6467
with:
6568
path: dist
6669
- run: python3 -um make_index --pypi-url https://pypi.devinfra.sentry.io --dest index
67-
- uses: google-github-actions/auth@v0
70+
- uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
6871
with:
69-
credentials_json: ${{ secrets.PYPI_DEVINFRA_SENTRY_IO }}
70-
- run: yes | gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS"
72+
workload_identity_provider: projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool
73+
service_account: [email protected]
7174
- run: python3 -uS bin/upload-artifacts

0 commit comments

Comments
 (0)