From a15511fd11bfb9700193e8ddf0e82325bb647057 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 31 May 2024 22:15:22 +0200 Subject: [PATCH] set GH access token in build Signed-off-by: Tim Vaillancourt --- build.env | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.env b/build.env index 34da6721aa7..32243db4507 100755 --- a/build.env +++ b/build.env @@ -47,3 +47,8 @@ ln -sf "$PWD/misc/git/pre-commit" .git/hooks/pre-commit ln -sf "$PWD/misc/git/commit-msg" .git/hooks/commit-msg git config core.hooksPath .git/hooks export EXTRA_BIN=$PWD/test/bin + +# support private github.com/slackhq/vitess-addons repo +if [[ -n "${GH_ACCESS_TOKEN}" ]]; then + git config --global url.https://${GH_ACCESS_TOKEN}@github.com/.insteadOf https://github.com/ +fi