Skip to content

Commit 7ea37bb

Browse files
authored
Add a way to use private repositories on GitHub (#869)
1 parent e244c81 commit 7ea37bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
# provides all arguments concatenated as a single string.
55
ARGS=("$@")
66

7+
if [[ ! -z "${GITHUB_AUTHENTICATION_TOKEN}" ]]; then
8+
git config --global --add url."https://x-access-token:${GITHUB_AUTHENTICATION_TOKEN}@github.com/".insteadOf "https://github.com/"
9+
fi
10+
711
/bin/gosec ${ARGS[*]}

0 commit comments

Comments
 (0)