Skip to content

Commit

Permalink
Use a new GitHub token and KMS key for the release process.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 229720262
  • Loading branch information
philwo authored and Copybara-Service committed Jan 17, 2019
1 parent 26d5a40 commit b8d0e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ function release_to_github() {
local rc=$(get_release_candidate)

if [ -n "${release_name}" ] && [ -z "${rc}" ]; then
local github_token="$(gsutil cat gs://bazel-encrypted-secrets/github-token.enc | \
gcloud kms decrypt --location global --keyring buildkite --key github-token --ciphertext-file - --plaintext-file -)"
local github_token="$(gsutil cat gs://bazel-trusted-encrypted-secrets/github-trusted-token.enc | \
gcloud kms decrypt --project bazel-public --location global --keyring buildkite --key github-trusted-token --ciphertext-file - --plaintext-file -)"

GITHUB_TOKEN=${github_token} github-release "bazelbuild/bazel" "${release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
GITHUB_TOKEN="${github_token}" github-release "bazelbuild/bazel" "${release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
fi
}

Expand Down

0 comments on commit b8d0e1b

Please sign in to comment.