mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
Add a way to use private repositories on GitHub (#869)
This commit is contained in:
parent
e244c811ea
commit
7ea37bbdc2
1 changed files with 4 additions and 0 deletions
|
@ -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[*]}
|
||||
|
|
Loading…
Reference in a new issue