From 98b62e4c804f00c4ab69b72c6b2d30a3e8ac3183 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Tue, 10 Mar 2026 15:05:23 +0100 Subject: [PATCH] fix: tf acc test pipeline --- .github/actions/acc_test/action.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index 42343698..e69a33fa 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: './service_account.json' + default: 'service_account.json' test_file: description: "testfile to run" @@ -132,14 +132,14 @@ runs: set -e 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 + if [[ "${{ inputs.service_account_json_content }}" == "" ]]; then echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing" exit 1 fi echo "creating service account file '${{ inputs.service_account_json_file_path }}'" - echo "${{ inputs.service_account_json_content }}" > "${{ inputs.service_account_json_file_path }}" + echo "${{ inputs.service_account_json_content }}" > stackit/"${{ inputs.service_account_json_file_path }}" fi - ls -l "${{ inputs.service_account_json_file_path }}" + ls -l stackit/"${{ inputs.service_account_json_file_path }}" - name: Run acceptance test file if: ${{ inputs.test_file != '' }} @@ -154,7 +154,7 @@ runs: TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \ TF_ACC_REGION=${TF_ACC_REGION} \ TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \ - TF_ACC_SERVICE_ACCOUNT_FILE=../"${{ inputs.service_account_json_file_path }}" \ + TF_ACC_SERVICE_ACCOUNT_FILE="${{ inputs.service_account_json_file_path }}" \ TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \ TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \ TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \ @@ -182,7 +182,7 @@ runs: TF_ACC_PROJECT_ID=${TF_ACC_PROJECT_ID} \ TF_ACC_REGION=${TF_ACC_REGION} \ TF_ACC_TEST_PROJECT_USER_EMAIL=${TF_ACC_TEST_PROJECT_USER_EMAIL} \ - TF_ACC_SERVICE_ACCOUNT_FILE=../"${{ inputs.service_account_json_file_path }}" \ + TF_ACC_SERVICE_ACCOUNT_FILE="${{ inputs.service_account_json_file_path }}" \ TF_ACC_KEK_KEY_ID=${TF_ACC_KEK_KEY_ID} \ TF_ACC_KEK_KEY_RING_ID=${TF_ACC_KEK_KEY_RING_ID} \ TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \