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:
@@ -4,4 +4,8 @@
|
|||||||
# provides all arguments concatenated as a single string.
|
# provides all arguments concatenated as a single string.
|
||||||
ARGS=("$@")
|
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[*]}
|
/bin/gosec ${ARGS[*]}
|
||||||
|
|||||||
Reference in New Issue
Block a user