Skip to content

Commit

Permalink
Use secret_var in auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybumsted committed Sep 21, 2022
1 parent 9aa4403 commit 0726479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared.bash
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ vault_auth() {
export VAULT_TOKEN
if ! VAULT_TOKEN=$(vault write -field=token -address="$server" auth/approle/login \
role_id="$BUILDKITE_PLUGIN_VAULT_SECRETS_AUTH_ROLE_ID" \
secret_id="$BUILDKITE_PLUGIN_VAULT_SECRETS_SECRET_ID"); then
secret_id="${!secret_var:-}"); then
echo "Failed to get vault token"
fi

Expand Down

0 comments on commit 0726479

Please sign in to comment.