mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
11 lines
395 B
Bash
Executable file
11 lines
395 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Expand the arguments into an array of strings. This is required because the GitHub action
|
|
# 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[*]}
|