mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06:00
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/
This commit is contained in:
parent
483689a71c
commit
e8fa5fd158
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user