Skip to content

Commit

Permalink
Fix a potential git security issue (#6)
Browse files Browse the repository at this point in the history
git version 2.34.2
fatal: unsafe repository ('/github/workspace' is owned by someone else)
To add an exception for this directory, call:

	git config --global --add safe.directory /github/workspace
  • Loading branch information
LinuxSuRen committed Apr 18, 2022
1 parent bfccc7f commit cbbad9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ git checkout master
git status
git remote add backup ${TARGET_GIT}
git remote -vv
git config --global --add safe.directory /github/workspace
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
echo 'ready to push'
Expand Down

0 comments on commit cbbad9c

Please sign in to comment.