From dde020aa00b517c0d5cdca46f18a2b0a37d51122 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Tue, 7 Nov 2023 19:34:13 +0100 Subject: [PATCH] fix: fix upstream not a directory bug (#13) This commit applies a hotfix for a upstream bug in [checkout/issues/766](https://github.com/actions/checkout/issues/766). --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index f33f777..17e1756 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,9 @@ #!/bin/sh set -eu +# Apply hotfix for 'fatal: unsafe repository' error (see #13) +git config --global --add safe.directory "${GITHUB_WORKSPACE}" + cd "${GITHUB_WORKSPACE}" || exit # Set up variables.