From bf00aca8548a774ef1e9351784cbd68c7be4d62d Mon Sep 17 00:00:00 2001 From: Eric Mueller Date: Mon, 18 Apr 2022 11:36:02 -0400 Subject: [PATCH] add global git config entry for GITHUB_WORKSPACE as a safe.directory Approach suggested by actions/checkout#766 and imitated from @JavidPack's comment in #11 --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 801733e..92ea586 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,6 +38,7 @@ if [[ "$INPUT_ALLOW_FF" == "true" ]]; then fi fi +git config --global --add safe.directory "$GITHUB_WORKSPACE" git remote set-url origin https://x-access-token:${!INPUT_PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git git config --global user.name "$INPUT_USER_NAME" git config --global user.email "$INPUT_USER_EMAIL"