Skip to content

Commit

Permalink
fix(action): mark container fs as safe for git (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardcooke53 committed Feb 1, 2023
1 parent a4b625f commit 2a55f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.sh
Expand Up @@ -20,6 +20,10 @@ cd "${INPUT_DIRECTORY}"
git config --global user.name "$GIT_COMMITTER_NAME"
git config --global user.email "$GIT_COMMITTER_EMAIL"

# See https://github.com/actions/runner-images/issues/6775#issuecomment-1409268124
# and https://github.com/actions/runner-images/issues/6775#issuecomment-1410270956
git config --system --add safe.directory "*"

if [[ -n $SSH_PUBLIC_SIGNING_KEY && -n $SSH_PRIVATE_SIGNING_KEY ]]; then
echo "SSH Key pair found, configuring signing..."
mkdir ~/.ssh
Expand Down

0 comments on commit 2a55f68

Please sign in to comment.