Skip to content

Commit

Permalink
Merge pull request #73 from devops-infra/bugfix/git-safe-dir
Browse files Browse the repository at this point in the history
Add `safe.directory` for git
  • Loading branch information
ChristophShyper authored Apr 19, 2022
2 parents 378f788 + afcce09 commit 1565a36
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 @@ -42,6 +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 --add safe.directory /github/workspace
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 1565a36

Please sign in to comment.