Skip to content

Commit bcdf47e

Browse files
committed
replace GITHUB_TOKEN in pre-command
1 parent 55dcd71 commit bcdf47e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.buildkite/hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "terraform-provider-elasticstack-release" ]]
1212
export GPG_PRIVATE_SECRET=$(scripts/retry.sh 5 vault kv get -field gpg_private ${RELEASE_VAULT_PATH})
1313
export GPG_PASSPHRASE_SECRET=$(scripts/retry.sh 5 vault kv get -field gpg_passphrase ${RELEASE_VAULT_PATH})
1414
export GPG_FINGERPRINT_SECRET=$(scripts/retry.sh 5 vault kv get -field gpg_fingerprint ${RELEASE_VAULT_PATH})
15-
export GITHUB_TOKEN=$(scripts/retry.sh 5 vault kv get -field gh_personal_access_token ${RELEASE_VAULT_PATH})
15+
export GITHUB_TOKEN="${VAULT_GITHUB_TOKEN}"
1616
fi

.buildkite/scripts/release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ echo "--- Caching GPG passphrase"
1212
echo "$GPG_PASSPHRASE_SECRET" | gpg --armor --detach-sign --passphrase-fd 0 --pinentry-mode loopback
1313

1414
echo "--- Release the binaries"
15-
export GITHUB_TOKEN="${VAULT_GITHUB_TOKEN}"
1615
make release

0 commit comments

Comments
 (0)