From afcce0990b80d458a8dee800a5235a40b0fae0ee Mon Sep 17 00:00:00 2001 From: Krzysztof Szyper <45788587+ChristophShyper@users.noreply.github.com> Date: Tue, 19 Apr 2022 13:22:46 +0200 Subject: [PATCH] Add `safe.directory` for git Should fix Docker permission errors with new git binary. --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index f017167..b68d66a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -42,6 +42,7 @@ 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 user.name "${GITHUB_ACTOR}" git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" # Needed for hub binary