forked from matteo/serves3
1
0
Fork 0

Add trufflehog pre-commit hook

This commit is contained in:
Matteo Settenvini 2023-08-28 18:41:19 +02:00
parent 1376c4577c
commit e9ce7789d8
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
1 changed files with 6 additions and 0 deletions

View File

@ -53,3 +53,9 @@ repos:
entry: cargo-deny
args: ['check']
pass_filenames: false
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: bash -c 'podman run -v "$(pwd):/workdir" --rm docker.io/trufflesecurity/trufflehog:latest git file:///workdir'
language: system
stages: ["commit", "push"]