Skip to content

Commit 7fe7a64

Browse files
authored
feat: add trufflehog to precommit (#4252)
* add trufflehog * add to readme * use their docs
1 parent 943b0e5 commit 7fe7a64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ repos:
1111

1212
- repo: local
1313
hooks:
14+
- id: trufflehog
15+
name: TruffleHog
16+
entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail'
17+
language: system
18+
stages: ["pre-commit", "pre-push"]
1419
- id: autoflake
1520
name: autoflake
1621
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 .'

0 commit comments

Comments
 (0)