diff --git a/entrypoint.sh b/entrypoint.sh index b68d66a..4bd589d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -42,7 +42,8 @@ fi echo -e "\nSetting GitHub credentials..." git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" -git config --global --add safe.directory /github/workspace +git config --global safe.directory "${GITHUB_WORKSPACE}" +git config --global safe.directory /github/workspace git config --global user.name "${GITHUB_ACTOR}" git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" # Needed for hub binary