Add precommit hook

This commit is contained in:
martin legrand 2025-03-24 12:58:19 +01:00
parent 189fb0d767
commit 1b32dff6a4

9
.pre-commit-config.yaml Normal file
View File

@ -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"]