Skip to content

Commit

Permalink
Add safe.directory for git
Browse files Browse the repository at this point in the history
Should fix Docker permission errors with new git binary.
  • Loading branch information
ChristophShyper committed Apr 19, 2022
1 parent da47297 commit 33cae51
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 @@ -52,6 +52,7 @@ fi

# Set git credentials
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${INPUT_ORGANIZATION_DOMAIN}/${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.${INPUT_ORGANIZATION_DOMAIN}"

Expand Down

0 comments on commit 33cae51

Please sign in to comment.