fix: fix tf acc test pipeline
Some checks failed
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled

This commit is contained in:
Marcel S. Henselin 2026-03-10 13:22:47 +01:00
parent 4f10919818
commit f783c566fb
2 changed files with 7 additions and 5 deletions

View file

@ -36,10 +36,9 @@ inputs:
default: 'eu01'
required: true
service_account_json:
service_account_json_content:
description: "STACKIT service account JSON file contents"
required: true
default: ""
service_account_json_file_path:
description: "STACKIT service account JSON file contents"
@ -107,8 +106,11 @@ runs:
run: |
set -e
if [[ ! -f "${{ inputs.service_account_json_file_path }}" ]]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
exit 1
if [[ -z "${{ inputs.service_account_json_file_content }}" ]]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}' \n and service_account_json_file_content is empty"
exit 1
fi
echo "${{ inputs.service_account_json_file_content }}" > "${{ inputs.service_account_json_file_path }}"
fi
cat "${{ inputs.service_account_json_file_path }}"

View file

@ -27,7 +27,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
project_id: ${{ vars.TEST_PROJECT_ID }}
region: 'eu01'
service_account_json: ${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}
service_account_json_content: "${{ secrets.TF_ACC_SERVICE_ACCOUNT_JSON }}"
project_user_email: ${{ vars.TEST_PROJECT_USER_EMAIL }}
tf_acc_kek_key_id: ${{ vars.TEST_KEK_KEY_ID }}
tf_acc_kek_key_ring_id: ${{ vars.TEST_KEK_KEY_RING_ID }}