Add precommit hook
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: trufflehog
|
||||||
|
name: TruffleHog
|
||||||
|
description: Detect secrets in your data.
|
||||||
|
entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail'
|
||||||
|
language: system
|
||||||
|
stages: ["commit", "push"]
|
||||||
Reference in New Issue
Block a user