Skip to content

Commit

Permalink
Merge pull request #27 from easimon/fix/git-security-update
Browse files Browse the repository at this point in the history
fix: Add GITHUB_WORKSPACE as a safe directory for git operations.
  • Loading branch information
haya14busa authored Apr 13, 2022
2 parents cde85f4 + a09a6ca commit 80ee585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

cd "${GITHUB_WORKSPACE}" || exit
cd "${GITHUB_WORKSPACE}" || exit 1
git config --global --add safe.directory "${GITHUB_WORKSPACE}" || exit 1

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

Expand Down

0 comments on commit 80ee585

Please sign in to comment.