Skip to content

Commit b0d9ac8

Browse files
committed
configure workload identity provider
1 parent 1946956 commit b0d9ac8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ jobs:
4949
strategy:
5050
matrix:
5151
affected: ${{fromJson(needs.affected.outputs.python)}}
52+
permissions:
53+
contents: read
54+
id-token: write
5255
env:
53-
GOOGLE_CLOUD_PROJECT: python-docs-samples-tests
56+
GOOGLE_CLOUD_PROJECT: jss-22p1-test
5457
defaults:
5558
run:
5659
working-directory: .github/testing
@@ -62,6 +65,10 @@ jobs:
6265
- uses: actions/setup-python@v5
6366
with:
6467
python-version: '3.11'
68+
- uses: 'google-github-actions/auth@v2'
69+
with:
70+
project_id: ${{env.GOOGLE_CLOUD_PROJECT}}
71+
workload_identity_provider: projects/886556137211/locations/global/workloadIdentityPools/github-actions/providers/github-actions-python
6572
- run: python --version
6673
- run: pip --version
6774
- run: pip install --upgrade pip

0 commit comments

Comments
 (0)