Skip to content

Commit

Permalink
[7.17] ci: set GH_TOKEN to remove warnings (backport #13369) (#13373)
Browse files Browse the repository at this point in the history
* ci: set GH_TOKEN to remove warnings (#13369)

(cherry picked from commit 5fc2102)

# Conflicts:
#	.github/workflows/ci.yml

* Apply suggestions from code review

---------

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
  • Loading branch information
mergify[bot] and v1v authored Jun 10, 2024
1 parent 8f3028f commit 209ec6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ if command -v docker &>/dev/null; then
unset DOCKER_USERNAME_SECRET DOCKER_PASSWORD_SECRET
fi

echo "--- Setting up the :github: environment..."
# release.mk uses gh cli to know the current release tag. release.mk is used by the root Makefile
# regardless is explicitly used, so it's loaded with the include directive.
# this will avoid printing warnings about the missing gh cli configurations
# VAULT_GITHUB_TOKEN is a primitive env variable created by the Buildkite automation.
GH_TOKEN="${VAULT_GITHUB_TOKEN}"
export GH_TOKEN

echo "--- Setting up the :golang: environment..."
GO_VERSION=$(cat .go-version)
WORKSPACE=$(git rev-parse --show-toplevel)
Expand Down

0 comments on commit 209ec6a

Please sign in to comment.