Skip to content

Commit

Permalink
Merge #42666
Browse files Browse the repository at this point in the history
42666: build: Pass GITHUB_API_TOKEN into github-pull-request-make r=bobvawter a=bobvawter

The lint tests were getting IP rate-limited by GitHub since it didn't have an
API token to pass along. The TC build step provides a restricted-use token via
the environment, but we need to pass it through to the builder invocation.

Release note: None

Co-authored-by: Bob Vawter <[email protected]>
  • Loading branch information
craig[bot] and bobvawter committed Nov 25, 2019
2 parents 52eff63 + 79a5c88 commit c49c605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/teamcity-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi

tc_start_block "Ensure dependencies are up-to-date"
run build/builder.sh go install ./vendor/github.com/golang/dep/cmd/dep ./pkg/cmd/github-pull-request-make
run build/builder.sh env BUILD_VCS_NUMBER="$BUILD_VCS_NUMBER" TARGET=checkdeps github-pull-request-make
runlogged "build/builder.sh ... github-pull-request-make" build/builder.sh env GITHUB_API_TOKEN="$GITHUB_API_TOKEN" BUILD_VCS_NUMBER="$BUILD_VCS_NUMBER" TARGET=checkdeps github-pull-request-make
tc_end_block "Ensure dependencies are up-to-date"

tc_start_block "Ensure generated code is up-to-date"
Expand Down
7 changes: 7 additions & 0 deletions build/teamcity-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ run() {
"$@"
}

runlogged() {
echo "$1"
shift
"$@"
}


# Returns the list of release branches from origin (origin/release-*), ordered
# by version (higher version numbers first).
get_release_branches() {
Expand Down

0 comments on commit c49c605

Please sign in to comment.