Skip to content

Commit

Permalink
buildkite: use bot user (#3653)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored May 29, 2024
1 parent 78098f1 commit 0104af4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .buildkite/hooks/prepare-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0104af4

Please sign in to comment.