Skip to content

Commit c0364da

Browse files
Merge pull request #69 from asaasdev/corrige-erro-128-codenarc-action
fix: configura autenticacao git no codenarc action para evitar erro 128
2 parents c32dd1d + d8da8ed commit c0364da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ if [ -n "${GITHUB_WORKSPACE}" ]; then
227227
git config --global --add safe.directory "$GITHUB_WORKSPACE"
228228
fi
229229

230+
if [ -n "${INPUT_GITHUB_TOKEN}" ]; then
231+
git config --global credential.helper '!f() { echo "username=x-access-token"; echo "password=${INPUT_GITHUB_TOKEN}"; }; f'
232+
fi
233+
230234
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
231235

232236
run_codenarc

0 commit comments

Comments
 (0)