Skip to content

Commit

Permalink
Configure git safe.directory in entrypoint.sh (#22)
Browse files Browse the repository at this point in the history
* Get a real pip version

* Configure git safe.directory

Addresses trufflesecurity/trufflehog#2495, as there have been no releases of the pip package since 2.2.1

Update entrypoint.sh

maybe adding config here?

capitalisation
  • Loading branch information
cdagraca authored Nov 6, 2024
1 parent 0af17d9 commit 6cf4d6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ if [ -n "${INPUT_SCANARGUMENTS}" ]; then
args="${INPUT_SCANARGUMENTS}" # Overwrite if new options string is provided
fi

git config --global --add safe.directory '*'

# By default the 'WORKDIR' of our Docker image is set to the 'GITHUB_WORKSPACE'
# which is mounted into our image. This means, as long as a checkout action was
# done before our action runs, we'll have access to the repository.
Expand Down

0 comments on commit 6cf4d6a

Please sign in to comment.