Skip to content

Commit d8da8ed

Browse files
security: usa credential helper para evitar exposicao do token em logs
1 parent d60758f commit d8da8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ if [ -n "${GITHUB_WORKSPACE}" ]; then
228228
fi
229229

230230
if [ -n "${INPUT_GITHUB_TOKEN}" ]; then
231-
git config --global url."https://x-access-token:${INPUT_GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
231+
git config --global credential.helper '!f() { echo "username=x-access-token"; echo "password=${INPUT_GITHUB_TOKEN}"; }; f'
232232
fi
233233

234234
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

0 commit comments

Comments
 (0)