From 051ae461051fa7a47b7d073208fdd333f045cad8 Mon Sep 17 00:00:00 2001 From: Kian Jones <11655409+kianjones9@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:33:33 -0700 Subject: [PATCH] feat: add trufflehog to precommit (#4252) * add trufflehog * add to readme * use their docs --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5be5b4ed..288a92f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,11 @@ repos: - repo: local hooks: + - id: trufflehog + name: TruffleHog + entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail' + language: system + stages: ["pre-commit", "pre-push"] - id: autoflake name: autoflake entry: bash -c '[ -d "apps/core" ] && cd apps/core; uv run autoflake --remove-all-unused-imports --remove-unused-variables --in-place --recursive --ignore-init-module-imports .'