1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

Add a way to use private repositories on GitHub (#869)

This commit is contained in:
Lars Gohr
2022-09-23 10:32:26 +02:00
committed by GitHub
parent e244c811ea
commit 7ea37bbdc2

View File

@@ -4,4 +4,8 @@
# provides all arguments concatenated as a single string.
ARGS=("$@")
if [[ ! -z "${GITHUB_AUTHENTICATION_TOKEN}" ]]; then
git config --global --add url."https://x-access-token:${GITHUB_AUTHENTICATION_TOKEN}@github.com/".insteadOf "https://github.com/"
fi
/bin/gosec ${ARGS[*]}