ci: fix credentials for tofu test stage
Some checks failed
pull-requests-open / Check commit compliance (pull_request) Successful in 36s
development / Check commit compliance (push) Successful in 43s
pull-requests-open / Check pre-commit status (pull_request) Successful in 14s
pull-requests-open / Run E2E tofu tests (pull_request) Failing after 41s

This commit is contained in:
Bertrand Lanson 2024-09-10 18:51:03 +02:00
parent 19c2032afa
commit 7a8ff6341a
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw

View File

@ -100,7 +100,7 @@ jobs:
- name: Get required credentials
id: tofu-auth
run: |
VAULT_TOKEN=$(curl --silent --request POST --data '{"role_id": "${{ steps.import-secrets.outputs.VAULT_INFRABUILDER_APPROLE_ID }}","secret_id": "${{ steps.import-secrets.outputs.VAULT_INFRABUILDER_APPROLE_SECRET_ID }}"}' https://vault.ednz.fr/v1/auth/approle/login | jq -r .auth.client_token)
VAULT_TOKEN=$(curl --silent --request POST --data '{"role_id": "${{ secrets.VAULT_APPROLE_ID }}","secret_id": "${{ secrets.VAULT_APPROLE_SECRET_ID }}"}' https://vault.ednz.fr/v1/auth/approle/login | jq -r .auth.client_token)
echo "vault_token=$VAULT_TOKEN" >> $GITHUB_OUTPUT
- name: Tofu init