From 178be40665e03a13a9aa067dff6c34df08c21050 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Tue, 10 Mar 2026 14:43:25 +0100 Subject: [PATCH] fix: tf acc test pipeline --- .github/actions/acc_test/action.yaml | 4 ++-- .github/workflows/tf-acc-test.yaml | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index d579e000..0acda7ac 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -43,7 +43,7 @@ inputs: service_account_json_file_path: description: "STACKIT service account JSON file contents" required: true - default: '~/.stackit/credentials.json' + default: './service_account.json' test_file: description: "testfile to run" @@ -130,7 +130,7 @@ runs: shell: bash run: | set -e - if [[ ! -f "${{ inputs.service_account_json_file_path }}" ]]; then + if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'" if [ -z "${{ inputs.service_account_json_content }}" ]; then echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing" diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 0e7e2b1b..4e3de3e2 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -14,13 +14,6 @@ jobs: - name: Checkout uses: actions/checkout@v6 - - name: Create service account json file - shell: bash - run: | - set -e - echo "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}" >~/service_account.json - cat ~/service_account.json - - name: Run Test uses: ./.github/actions/acc_test with: @@ -33,4 +26,4 @@ jobs: tf_acc_kek_key_ring_id: ${{ vars.TEST_KEK_KEY_RING_ID }} tf_acc_kek_key_version: ${{ vars.TEST_KEK_KEY_VERSION }} tf_acc_kek_service_account: ${{ vars.TEST_KEK_SERVICE_ACCOUNT }} - service_account_json_file_path: "~/service_account.json" + # service_account_json_file_path: "~/service_account.json"