Skip to content

Commit

Permalink
Merge pull request #52 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 committed Apr 19, 2022
2 parents da47297 + 33cae51 commit 1825d05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
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 1825d05

Please sign in to comment.