From e8fa5fd15849c4597f4d067a9999ad4311ff1c50 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Wed, 13 Apr 2022 08:46:46 +0200 Subject: [PATCH] Print git version and attempted fix for https://github.com/cpina/github-action-push-to-another-repository/issues/64 related to https://github.blog/2022-04-12-git-security-vulnerability-announced/ --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 62b60d3..4a35f19 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,6 +28,14 @@ fi CLONE_DIR=$(mktemp -d) +echo "[+] Git version" +git --version + +echo "[+] Add everything is safe" +# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 and https://github.com/cpina/github-action-push-to-another-repository/issues/64 +# TODO: review before releasing it as a version +git config --add safe.directory / + echo "[+] Cloning destination git repository $DESTINATION_REPOSITORY_NAME" # Setup git git config --global user.email "$USER_EMAIL"