From afba62e903b43174f8c02434d068b718e2a7fc1a Mon Sep 17 00:00:00 2001 From: rogthefrog Date: Tue, 26 Nov 2024 16:00:03 -0800 Subject: [PATCH] fix google authentication a different way --- .github/workflows/scheduled-smoke-test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/scheduled-smoke-test.yml b/.github/workflows/scheduled-smoke-test.yml index 18010efa..05db72d4 100644 --- a/.github/workflows/scheduled-smoke-test.yml +++ b/.github/workflows/scheduled-smoke-test.yml @@ -56,11 +56,10 @@ jobs: run: poetry install --no-interaction --sync --extras all_plugins - - name: Write Vertex AI secrets - run: | - mkdir -p ~/.local/.config/gcloud - echo "${{ secrets.VERTEX_AI_CREDENTIALS_JSON }}" > ~/.config/gcloud/application_default_credentials.json - echo "GOOGLE_APPLICATION_CREDENTIALS=~/.config/gcloud/application_default_credentials.json" >> $GITHUB_ENV + - name: Vertex AI authentication + uses: 'google-github-actions/auth@v2' + with: + credentials_json: '${{ secrets.VERTEX_AI_CREDENTIALS_JSON }}' - name: Write secrets env: