feat(pre-commit): added trufflehog to pre-commit (#2311)

This commit is contained in:
Nacho Rivera
2023-05-04 15:33:11 +02:00
committed by GitHub
parent 56a8bb2349
commit 9b551ef0ba

View File

@@ -75,6 +75,15 @@ repos:
entry: bash -c 'pylint --disable=W,C,R,E -j 0 -rn -sn prowler/'
language: system
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
# entry: bash -c 'trufflehog git file://. --only-verified --fail'
# For running trufflehog in docker, use the following entry instead:
entry: bash -c 'docker run -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --only-verified --fail'
language: system
stages: ["commit", "push"]
- id: pytest-check
name: pytest-check
entry: bash -c 'pytest tests -n auto'