File tree Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,8 @@ source .buildkite/scripts/tooling.sh
4
4
5
5
set -euo pipefail
6
6
7
- GO_VERSION=$( cat .go-version)
8
- export GO_VERSION
9
-
10
7
# Secrets must be redacted
11
8
# https://buildkite.com/docs/pipelines/managing-log-output#redacted-environment-variables
12
9
13
- if [[ " $BUILDKITE_PIPELINE_SLUG " == " package-spec-test-with-integrations" && " $BUILDKITE_STEP_KEY " == " pr-integrations" ]]; then
14
- # required to set the git commit information
15
- GITHUB_USERNAME_SECRET=" elasticmachine"
16
- export GITHUB_USERNAME_SECRET=$GITHUB_USERNAME_SECRET
17
- export GITHUB_EMAIL_SECRET=" elasticmachine@elastic.co"
18
- # required by `gh` commands
19
- export GITHUB_TOKEN=$VAULT_GITHUB_TOKEN
20
- fi
10
+ GO_VERSION=$( cat .go-version)
11
+ export GO_VERSION
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ steps:
26
26
- label : " :hammer: Create PR in integrations"
27
27
key : pr-integrations
28
28
command : " .buildkite/scripts/test-with-integrations.sh"
29
+ env :
30
+ GITHUB_EMAIL : " elasticmachine@elastic.co"
31
+ GITHUB_USERNAME : " elastic-vault-github-plugin-prod"
32
+ plugins :
33
+ # Required to push branches, create PRs and post comments on PRs
34
+ - elastic/vault-github-token#v0.1.0:
29
35
agents :
30
36
provider : " gcp"
31
37
depends_on :
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ get_source_commit_link() {
54
54
}
55
55
56
56
set_git_config () {
57
- git config user.name " ${GITHUB_USERNAME_SECRET } "
58
- git config user.email " ${GITHUB_EMAIL_SECRET } "
57
+ git config user.name " ${GITHUB_USERNAME } "
58
+ git config user.email " ${GITHUB_EMAIL } "
59
59
}
60
60
61
61
git_push () {
@@ -117,7 +117,7 @@ update_dependency() {
117
117
# allow not to commit if there are no changes
118
118
# previous execution could fail and just pushed the branch but PR is not created
119
119
if ! git diff-index --quiet HEAD ; then
120
- git commit -m " Test elastic- package from PR ${BUILDKITE_PULL_REQUEST} - ${GITHUB_PR_HEAD_SHA} "
120
+ git commit -m " Test package-spec from PR ${BUILDKITE_PULL_REQUEST} - ${GITHUB_PR_HEAD_SHA} "
121
121
fi
122
122
123
123
echo " "
You can’t perform that action at this time.
0 commit comments