From c735f222b2aa86e8087ddb56b658405b69246d59 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 13 Feb 2026 14:45:36 +0100 Subject: [PATCH] chore: add service account json file --- .github/workflows/ci.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bf8649ad..6030b21e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -108,6 +108,12 @@ jobs: name: CI run tests runs-on: ubuntu-latest needs: config + env: + TF_ACC: "1" + TF_ACC_PROJECT_ID: ${{ vars.TF_ACC_PROJECT_ID }} + TF_ACC_REGION: ${{ vars.TF_ACC_REGION }} + TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL: ${{ vars.TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL }} + TF_ACC_SERVICE_ACCOUNT_FILE: "~/service_account.json" steps: - name: Checkout uses: actions/checkout@v6 @@ -122,7 +128,12 @@ jobs: with: terraform_wrapper: false - - name: "Run go mod tidy" + - name: Create service account json file + if: ${{ github.event_name == 'pull_request' }} + run: | + echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/service_account.json + + - name: Run go mod tidy if: ${{ github.event_name == 'pull_request' }} run: go mod tidy