Skip to content

Commit 4555b24

Browse files
authored
Remove redundant google-github-actions/auth steps from self-hosted PR workflows (#40378)
1 parent e8c94d7 commit 4555b24

5 files changed

Lines changed: 1 addition & 27 deletions

‎.github/workflows/beam_PostCommit_Java_ValidatesRunner_Dataflow_V2_Streaming.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ jobs:
7878
uses: ./.github/actions/setup-environment-action
7979
with:
8080
java-version: default
81-
- name: Authenticate to GCP
82-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
83-
with:
84-
service_account: ${{ secrets.GCP_SA_EMAIL }}
85-
credentials_json: ${{ secrets.GCP_SA_KEY }}
8681
- name: Set up Cloud SDK
8782
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
8883
- name: run validatesRunnerV2Streaming script

‎.github/workflows/beam_PostCommit_Python_Arm.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ jobs:
8989
run: |
9090
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
9191
sudo chmod +x /usr/local/bin/docker-compose
92-
- name: Authenticate on GCP
93-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
94-
with:
95-
service_account: ${{ secrets.GCP_SA_EMAIL }}
96-
credentials_json: ${{ secrets.GCP_SA_KEY }}
9792
- name: Set up Cloud SDK
9893
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
9994
# aarch64 wheels are built with cibuildwheel on this x86 runner.

‎.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ jobs:
8181
with:
8282
java-version: default
8383
python-version: ${{ matrix.python_version }}
84-
- name: Authenticate to GCP
85-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
86-
with:
87-
service_account: ${{ secrets.GCP_SA_EMAIL }}
88-
credentials_json: ${{ secrets.GCP_SA_KEY }}
8984
- name: Set up Cloud SDK
9085
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
9186
- name: Configure Docker auth for GCR

‎.github/workflows/beam_PostCommit_Python_ValidatesContainer_Dataflow_With_RC.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ jobs:
8383
with:
8484
java-version: default
8585
python-version: ${{ matrix.python_version }}
86-
- name: Authenticate to GCP
87-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
88-
with:
89-
service_account: ${{ secrets.GCP_SA_EMAIL }}
90-
credentials_json: ${{ secrets.GCP_SA_KEY }}
9186
- name: Set up Cloud SDK
9287
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
9388
- name: Set PY_VER_CLEAN

‎.github/workflows/beam_PreCommit_Website_Stage_GCS.yml‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,11 @@ jobs:
8989
with:
9090
python-version: default
9191
java-version: default
92-
- name: Authenticate on GCP
93-
id: auth-gcp
94-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
95-
with:
96-
service_account: ${{ secrets.GCP_SA_EMAIL }}
97-
credentials_json: ${{ secrets.GCP_SA_KEY }}
9892
- name: Run website_stageWebsite script
9993
uses: ./.github/actions/gradle-command-self-hosted-action
10094
with:
10195
gradle-command: :website:stageWebsite
102-
arguments: -PwebsiteBucket=$gcsbucket -PgcpCredsFile="${{ steps.auth-gcp.outputs.credentials_file_path }}"
96+
arguments: -PwebsiteBucket=$gcsbucket
10397
- name: Add website link to the summary if pr
10498
if: env.ghprbPullId != null
10599
run: echo "Website published to http://$gcsbucket.storage.googleapis.com/$ghprbPullId/index.html" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)