Skip to content

Commit

Permalink
Merge pull request #74 from devops-infra/bugfix/safe-dir
Browse files Browse the repository at this point in the history
Set safe directory for git
  • Loading branch information
ChristophShyper authored Apr 19, 2022
2 parents 1565a36 + 4c20c65 commit 36f1d3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ 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 safe.directory "${GITHUB_WORKSPACE}"
git config --global 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 36f1d3b

Please sign in to comment.