From 874a131ec91fd8f62c8dd23f2dd28843eb30205b Mon Sep 17 00:00:00 2001 From: Nacho Rivera Date: Thu, 11 Jan 2024 11:47:19 +0100 Subject: [PATCH] chore(precommit): set trufflehog as command (#3262) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c01e1d9..770cbfc2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -80,9 +80,9 @@ repos: - id: trufflehog name: TruffleHog description: Detect secrets in your data. - # entry: bash -c 'trufflehog git file://. --only-verified --fail' + entry: bash -c 'trufflehog --no-update git file://. --only-verified --fail' # For running trufflehog in docker, use the following entry instead: - entry: bash -c 'docker run -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --only-verified --fail' + # entry: bash -c 'docker run -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --only-verified --fail' language: system stages: ["commit", "push"]