From 4f6fb412f18d76d67e872524cb66090d3097fbba Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 19 Dec 2022 19:54:43 -0800 Subject: [PATCH] Make /github/workspace safe directory --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 3c643c2..8bb661e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -65,6 +65,7 @@ echo "[+] Cloning destination git repository $DESTINATION_REPOSITORY_NAME" # Setup git git config --global user.email "$USER_EMAIL" git config --global user.name "$USER_NAME" +git config --global --add safe.directory /github/workspace if ! git clone --single-branch --depth 1 --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"; then if ${CREATE_TARGET_BRANCH} && git clone --single-branch --depth 1 "$GIT_CMD_REPOSITORY" "$CLONE_DIR"; then