Skip to content

Commit 90a32ed

Browse files
committed
Fix GCP auth step
1 parent 781917a commit 90a32ed

File tree

5 files changed

+25
-18
lines changed

5 files changed

+25
-18
lines changed

.github/workflows/beam_PostCommit_Python_Arm.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ jobs:
8585
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
8686
sudo chmod +x /usr/local/bin/docker-compose
8787
- name: Authenticate on GCP
88-
uses: google-github-actions/setup-gcloud@v0
88+
uses: google-github-actions/auth@v2
8989
with:
90-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
91-
service_account_key: ${{ secrets.GCP_SA_KEY }}
92-
export_default_credentials: true
90+
service_account: ${{ secrets.GCP_SA_EMAIL }}
91+
credentials_json: ${{ secrets.GCP_SA_KEY }}
92+
- name: Set up Cloud SDK
93+
uses: google-github-actions/setup-gcloud@v2
9394
- name: Set up Docker Buildx
9495
uses: docker/setup-buildx-action@v2
9596
- name: GCloud Docker credential helper

.github/workflows/beam_Publish_Beam_SDK_Snapshots.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ jobs:
9595
- name: Set up Docker Buildx
9696
uses: docker/setup-buildx-action@v1
9797
- name: Authenticate on GCP
98-
uses: google-github-actions/setup-gcloud@v0
98+
uses: google-github-actions/auth@v2
9999
with:
100-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
101-
service_account_key: ${{ secrets.GCP_SA_KEY }}
100+
service_account: ${{ secrets.GCP_SA_EMAIL }}
101+
credentials_json: ${{ secrets.GCP_SA_KEY }}
102+
- name: Set up Cloud SDK
103+
uses: google-github-actions/setup-gcloud@v2
102104
- name: GCloud Docker credential helper
103105
run: |
104106
gcloud auth configure-docker ${{ env.docker_registry }}

.github/workflows/beam_Python_ValidatesContainer_Dataflow_ARM.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ jobs:
7575
with:
7676
python-version: ${{ matrix.python_version }}
7777
- name: Authenticate on GCP
78-
uses: google-github-actions/setup-gcloud@v0
78+
uses: google-github-actions/auth@v2
7979
with:
80-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
81-
service_account_key: ${{ secrets.GCP_SA_KEY }}
82-
export_default_credentials: true
80+
service_account: ${{ secrets.GCP_SA_EMAIL }}
81+
credentials_json: ${{ secrets.GCP_SA_KEY }}
82+
- name: Set up Cloud SDK
83+
uses: google-github-actions/setup-gcloud@v2
8384
- name: Set up Docker Buildx
8485
uses: docker/setup-buildx-action@v2
8586
- name: GCloud Docker credential helper

.github/workflows/refresh_looker_metrics.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ jobs:
4343
python-version: 3.11
4444
- run: pip install requests google-cloud-storage looker-sdk
4545
- name: Authenticate on GCP
46-
uses: google-github-actions/setup-gcloud@v0
46+
uses: google-github-actions/auth@v2
4747
with:
48-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
49-
service_account_key: ${{ secrets.GCP_SA_KEY }}
50-
export_default_credentials: true
48+
service_account: ${{ secrets.GCP_SA_EMAIL }}
49+
credentials_json: ${{ secrets.GCP_SA_KEY }}
50+
- name: Set up Cloud SDK
51+
uses: google-github-actions/setup-gcloud@v2
5152
- run: python .test-infra/tools/refresh_looker_metrics.py

.github/workflows/republish_released_docker_containers.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ jobs:
7272
with:
7373
python-version: '3.9'
7474
- name: Authenticate on GCP
75-
uses: google-github-actions/setup-gcloud@v0
75+
uses: google-github-actions/auth@v2
7676
with:
77-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
78-
service_account_key: ${{ secrets.GCP_SA_KEY }}
77+
service_account: ${{ secrets.GCP_SA_EMAIL }}
78+
credentials_json: ${{ secrets.GCP_SA_KEY }}
79+
- name: Set up Cloud SDK
80+
uses: google-github-actions/setup-gcloud@v2
7981
- name: Set up Docker Buildx
8082
uses: docker/setup-buildx-action@v2
8183
- name: Remove default github maven configuration

0 commit comments

Comments
 (0)