From 0104af43771e08a60fdc6fb58f1980fdcded2a2d Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 29 May 2024 21:36:47 +0200 Subject: [PATCH] buildkite: use bot user (#3653) --- .buildkite/hooks/prepare-benchmark.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.buildkite/hooks/prepare-benchmark.sh b/.buildkite/hooks/prepare-benchmark.sh index 7dd44d5bca..fb9f17b731 100644 --- a/.buildkite/hooks/prepare-benchmark.sh +++ b/.buildkite/hooks/prepare-benchmark.sh @@ -8,11 +8,10 @@ ES_PASS_SECRET=$(vault read -field=es_pass secret/ci/elastic-apm-agent-java/open export ES_URL_SECRET ES_USER_SECRET ES_PASS_SECRET echo "--- Prepare github secrets :vault:" -GITHUB_SECRET=$(vault kv get -field token "kv/ci-shared/observability-ci/github-apmmachine") +GITHUB_SECRET=$(vault kv get -field token "kv/ci-shared/observability-ci/github-bot-user") +GITHUB_USERNAME=$(vault kv get -field username "kv/ci-shared/observability-ci/github-bot-user") GH_TOKEN=$GITHUB_SECRET -export GITHUB_SECRET GH_TOKEN -GITHUB_USERNAME=apmmachine -export GITHUB_USERNAME +export GITHUB_SECRET GH_TOKEN GITHUB_USERNAME echo "--- Install gh :github:" GH_URL=https://github.com/cli/cli/releases/download/v2.37.0/gh_2.37.0_linux_amd64.tar.gz