Skip to content

Commit

Permalink
fix(action): mark container fs as safe for git to operate on
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardcooke53 committed Feb 1, 2023
1 parent 63e613e commit 49080c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,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 49080c5

Please sign in to comment.