Skip to content

Commit adefd42

Browse files
Add auth step to all other impacted workflows
1 parent 5848b5d commit adefd42

8 files changed

+26
-24
lines changed

Diff for: .github/workflows/build-calitp-data-infra.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
- uses: actions/setup-python@v4
2828
with:
2929
python-version: '3.9'
30-
- uses: google-github-actions/setup-gcloud@v1
30+
- uses: 'google-github-actions/auth@v2'
3131
with:
32-
export_default_credentials: true
33-
service_account_key: ${{ secrets.GCP_SA_KEY }}
32+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
33+
- uses: google-github-actions/setup-gcloud@v2
3434
- name: Run checks
3535
run: |
3636
curl -sSL https://install.python-poetry.org | python -

Diff for: .github/workflows/build-warehouse-image.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
with:
4040
python-version: '3.9'
4141
- run: curl -sSL https://install.python-poetry.org | python -
42-
- uses: google-github-actions/setup-gcloud@v1
42+
- uses: 'google-github-actions/auth@v2'
4343
with:
44-
export_default_credentials: true
45-
service_account_key: ${{ secrets.GCP_SA_KEY }}
44+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
45+
- uses: google-github-actions/setup-gcloud@v2
4646
- name: Compile dbt project
4747
working-directory: warehouse
4848
run: |

Diff for: .github/workflows/deploy-airflow.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: google-github-actions/setup-gcloud@v1
19+
- uses: 'google-github-actions/auth@v2'
2020
with:
21-
export_default_credentials: true
22-
service_account_key: ${{ secrets.GCP_SA_KEY }}
21+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
22+
23+
- uses: google-github-actions/setup-gcloud@v2
2324

2425
# Only update requirements if they have changed; Composer throws an error if there are no changes to apply
2526
- uses: tj-actions/changed-files@v35

Diff for: .github/workflows/publish-docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
with:
2323
python-version: 3.9
2424
- run: pip install -r docs/requirements.txt
25-
- uses: google-github-actions/setup-gcloud@v1
25+
- uses: 'google-github-actions/auth@v2'
2626
with:
27-
service_account_key: ${{ secrets.GCP_SA_KEY }}
28-
export_default_credentials: true
27+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
28+
- uses: google-github-actions/setup-gcloud@v2
2929

3030
- name: Build jupyter book
3131
run: jb build docs --warningiserror --keep-going # set doc to fail on any sphinx warning

Diff for: .github/workflows/sentry-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: google-github-actions/setup-gcloud@v1
12+
- uses: 'google-github-actions/auth@v2'
1313
with:
14-
export_default_credentials: true
15-
service_account_key: ${{ secrets.GCP_SA_KEY }}
14+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
15+
- uses: google-github-actions/setup-gcloud@v2
1616
- uses: 'google-github-actions/get-secretmanager-secrets@v1'
1717
id: secrets
1818
with:

Diff for: .github/workflows/service-release-channel.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
uses: actions/checkout@v2
2020
with:
2121
fetch-depth: 0
22-
- uses: google-github-actions/setup-gcloud@v1
22+
- uses: 'google-github-actions/auth@v2'
2323
with:
24-
service_account_key: ${{ secrets.GCP_SA_KEY }}
25-
export_default_credentials: true
24+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
25+
- uses: google-github-actions/setup-gcloud@v2
2626
- name: install auth plugin
2727
run: gcloud components install gke-gcloud-auth-plugin
2828
- uses: google-github-actions/get-gke-credentials@v1

Diff for: .github/workflows/service-release-diff.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29-
- uses: google-github-actions/setup-gcloud@v1
29+
- uses: 'google-github-actions/auth@v2'
3030
with:
31-
service_account_key: ${{ secrets.GCP_SA_KEY }}
32-
export_default_credentials: true
31+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
32+
- uses: google-github-actions/setup-gcloud@v2
3333
- run: gcloud components install gke-gcloud-auth-plugin
3434
- uses: google-github-actions/get-gke-credentials@v1
3535
with:

Diff for: .github/workflows/terraform-report.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ jobs:
2020
fetch-depth: 0
2121
submodules: true
2222

23-
- uses: google-github-actions/setup-gcloud@v1
23+
- uses: 'google-github-actions/auth@v2'
2424
with:
25-
service_account_key: ${{ secrets.GCP_SA_KEY }}
26-
export_default_credentials: true
25+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
26+
27+
- uses: google-github-actions/setup-gcloud@v2
2728

2829
- uses: hashicorp/setup-terraform@v2
2930
with:

0 commit comments

Comments
 (0)