From 6cf4d6ab0edcfee4251c8c4d214e3655b84c6cb6 Mon Sep 17 00:00:00 2001 From: C da Graca <5451603+cdagraca@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:30:11 +0000 Subject: [PATCH] Configure git safe.directory in entrypoint.sh (#22) * Get a real pip version * Configure git safe.directory Addresses https://github.com/trufflesecurity/trufflehog/issues/2495, as there have been no releases of the pip package since 2.2.1 Update entrypoint.sh maybe adding config here? capitalisation --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index c50933c..a01319a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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.