This is an automated email from the ASF dual-hosted git repository.

yhu pushed a commit to branch tryfixpythontest
in repository https://gitbox.apache.org/repos/asf/beam.git

commit aa313962c8b380ccd4df49be4544b2456dc4dfe3
Author: Yi Hu <[email protected]>
AuthorDate: Thu Jul 11 12:13:46 2024 -0400

    Fix Python test auth
---
 .github/workflows/python_tests.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/python_tests.yml 
b/.github/workflows/python_tests.yml
index efc5af84c4b..be1659fec43 100644
--- a/.github/workflows/python_tests.yml
+++ b/.github/workflows/python_tests.yml
@@ -175,12 +175,11 @@ jobs:
           name: python_sdk_source
           path: apache-beam-source
       - name: Authenticate on GCP
-        uses: google-github-actions/setup-gcloud@v0
+        id: auth
+        uses: google-github-actions/auth@v1
         with:
-          service_account_email: ${{ secrets.GCP_SA_EMAIL }}
-          service_account_key: ${{ secrets.GCP_SA_KEY }}
+          credentials_json: ${{ secrets.GCP_SA_KEY }}
           project_id: ${{ secrets.GCP_PROJECT_ID }}
-          export_default_credentials: true
       - name: Install requirements
         working-directory: ./sdks/python
         run: pip install setuptools --upgrade && pip install -e ".[gcp]"

Reply via email to