From e281c1311694f562bda28146809de452632c1985 Mon Sep 17 00:00:00 2001 From: Kurt Garloff Date: Tue, 2 Jun 2026 10:58:06 +0200 Subject: [PATCH] Pass google auth creds. Signed-off-by: Kurt Garloff --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a43eb5fe..10ae638e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 + - id: 'auth' + uses: 'google-github-actions/auth@v2' + with: + # Use Workload Identity Federation (preferred) or a Service Account Key + credentials_json: '${{ secrets.GCP_SA_KEY }}' - name: Coverage result name id: name run: | @@ -59,7 +64,7 @@ jobs: GIT_REPOSITORY_NAME: cluster-stacks GO111MODULE: "on" GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} - run: make test-unit + run: make test-unit GOOGLE_APPLICATION_CREDENTIALS=${{ steps.auth.outputs.credentials_file_path }} - name: Running integration tests workloadcluster env: