Skip to content

Commit

Permalink
Add a way to use private repositories on GitHub (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr authored Sep 23, 2022
1 parent e244c81 commit 7ea37bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[*]}

0 comments on commit 7ea37bb

Please sign in to comment.