Skip to content

Commit

Permalink
Mark git repositories as safe inside the slither-action container
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Feb 9, 2023
1 parent 11878ab commit fda5e39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ IGNORECOMPILE="$(get INPUT_IGNORE-COMPILE)"
# it with the `solc-version` action option.
unset SOLC_VERSION

# #49 - the user/group info may mismatch between container and host, and it
# may cause git to complain with `detected dubious ownership in repository`.
# mark everything as safe here as we don't know where the repository is (it
# might be something other than $GITHUB_WORKSPACE)
git config --global --add safe.directory '*'

compatibility_link()
{
HOST_GITHUB_WORKSPACE="$(get INPUT_INTERNAL-GITHUB-WORKSPACE | tr -d \")"
Expand Down

0 comments on commit fda5e39

Please sign in to comment.