From 07264796dd53311ea92b86cbd9c6fc73c14161d0 Mon Sep 17 00:00:00 2001 From: Jeremy Bumsted Date: Tue, 20 Sep 2022 18:06:17 -0600 Subject: [PATCH] Use secret_var in auth --- lib/shared.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared.bash b/lib/shared.bash index 0ff5118..07704af 100644 --- a/lib/shared.bash +++ b/lib/shared.bash @@ -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