Skip to content

Commit 6ebf45d

Browse files
committed
pre-commit: enable trufflehog secret scanning
1 parent be85a5d commit 6ebf45d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ repos:
9494
- "requests"
9595
- "sushy"
9696
- "types-requests"
97+
- repo: local
98+
hooks:
99+
- id: trufflehog
100+
name: TruffleHog
101+
description: Detect secrets in your data.
102+
# uncomment this if you don't want to use docker version
103+
# entry: bash -c 'trufflehog --no-update git file://. --since-commit HEAD --results=verified,unknown --fail'
104+
entry: bash -c 'docker run --rm -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --since-commit HEAD --results=verified,unknown --fail'
105+
language: system
106+
stages: ["pre-commit", "pre-push"]

0 commit comments

Comments
 (0)