Skip to content

Commit 7244911

Browse files
Switch to PAT generated GH token (#5027) (#5441)
* Update sync-k8s.sh * Update creator_k8s_manifest.sh * Update creator_k8s_manifest.sh * Update sync-k8s.sh * Changes made for test new PAT generated token * For test changes * Update Makefile * Revert changes that was done for test * Update creator_k8s_manifest.sh * Update creator_k8s_manifest.sh (cherry picked from commit 60f66df) Co-authored-by: Yehor Shvedov <146825775+ev1yehor@users.noreply.github.com>
1 parent 75d6eca commit 7244911

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.buildkite/scripts/steps/sync-k8s.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ source .buildkite/scripts/install-gh.sh
77
source .buildkite/scripts/common.sh
88

99
echo "--- [Prepare env] Create required env variables"
10-
GITHUB_TOKEN_VAULT_PATH="kv/ci-shared/platform-ingest/github_token"
11-
GITHUB_USERNAME_SECRET=$(retry 5 vault kv get -field username ${GITHUB_TOKEN_VAULT_PATH})
12-
export GITHUB_USERNAME_SECRET
13-
GITHUB_EMAIL_SECRET=$(retry 5 vault kv get -field email ${GITHUB_TOKEN_VAULT_PATH})
14-
export GITHUB_EMAIL_SECRET
15-
GITHUB_TOKEN_SECRET=$(retry 5 vault kv get -field token ${GITHUB_TOKEN_VAULT_PATH})
16-
export GITHUB_TOKEN_SECRET
10+
GITHUB_USERNAME_SECRET="elasticmachine"
11+
export GITHUB_USERNAME_SECRET=$GITHUB_USERNAME_SECRET
12+
export GITHUB_EMAIL_SECRET="elasticmachine@elastic.co"
13+
export GITHUB_TOKEN_SECRET=$VAULT_GITHUB_TOKEN
1714

1815
cd deploy/kubernetes
1916

0 commit comments

Comments
 (0)