From 0063fae1686ddcdbd283b809f78d50ce5e038615 Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Tue, 31 May 2022 08:55:44 -0400 Subject: [PATCH 1/2] Add the current dir as a git safe dir From git 2.35.2, the repository needs to be owned by the current user. See https://github.blog/2022-04-12-git-security-vulnerability-announced/ --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 07856b4..367eb60 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,6 +17,7 @@ if [[ "$REPONAME" == "$GHIO" ]]; then else REMOTE_BRANCH="gh-pages" fi && \ +git config --system --add safe.directory $PWD \ git init && \ git config user.name "${GITHUB_ACTOR}" && \ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \ From 544705501a2b6af7d03f30759099d8004b58e8f1 Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Tue, 31 May 2022 09:03:31 -0400 Subject: [PATCH 2/2] Add missing && --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 367eb60..af6d750 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,7 +17,7 @@ if [[ "$REPONAME" == "$GHIO" ]]; then else REMOTE_BRANCH="gh-pages" fi && \ -git config --system --add safe.directory $PWD \ +git config --system --add safe.directory $PWD && \ git init && \ git config user.name "${GITHUB_ACTOR}" && \ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \