Skip to content

Commit cbbad9c

Browse files
authored
Fix a potential git security issue (#6)
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
1 parent bfccc7f commit cbbad9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ git checkout master
1414
git status
1515
git remote add backup ${TARGET_GIT}
1616
git remote -vv
17+
git config --global --add safe.directory /github/workspace
1718
git config --global user.name "${GITHUB_ACTOR}"
1819
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
1920
echo 'ready to push'

0 commit comments

Comments
 (0)