Skip to content

Commit e281c13

Browse files
committed
Pass google auth creds.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 4c98e90 commit e281c13

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
34+
- id: 'auth'
35+
uses: 'google-github-actions/auth@v2'
36+
with:
37+
# Use Workload Identity Federation (preferred) or a Service Account Key
38+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
3439
- name: Coverage result name
3540
id: name
3641
run: |
@@ -59,7 +64,7 @@ jobs:
5964
GIT_REPOSITORY_NAME: cluster-stacks
6065
GO111MODULE: "on"
6166
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
62-
run: make test-unit
67+
run: make test-unit GOOGLE_APPLICATION_CREDENTIALS=${{ steps.auth.outputs.credentials_file_path }}
6368

6469
- name: Running integration tests workloadcluster
6570
env:

0 commit comments

Comments
 (0)