Skip to content

Commit

Permalink
add global git config entry for GITHUB_WORKSPACE as a safe.directory
Browse files Browse the repository at this point in the history
Approach suggested by actions/checkout#766 and imitated from @JavidPack's comment in #11
  • Loading branch information
nevinera committed Apr 18, 2022
1 parent 4047e51 commit bf00aca
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 @@ -38,6 +38,7 @@ if [[ "$INPUT_ALLOW_FF" == "true" ]]; then
fi
fi

git config --global --add safe.directory "$GITHUB_WORKSPACE"
git remote set-url origin https://x-access-token:${!INPUT_PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git
git config --global user.name "$INPUT_USER_NAME"
git config --global user.email "$INPUT_USER_EMAIL"
Expand Down

0 comments on commit bf00aca

Please sign in to comment.