Skip to content

Commit

Permalink
Merge pull request #75 from devops-infra/bugfix/disable-safe-dir
Browse files Browse the repository at this point in the history
Disable safe.directory for git
  • Loading branch information
ChristophShyper authored Apr 19, 2022
2 parents 36f1d3b + cc5488b commit 50c85af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ fi

echo -e "\nSetting GitHub credentials..."
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}"
git config --global safe.directory "${GITHUB_WORKSPACE}"
git config --global safe.directory /github/workspace
git config --global safe.directory "*"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# Needed for hub binary
Expand Down

0 comments on commit 50c85af

Please sign in to comment.