From 16511ab7db69ce95da1d5370d64d59aa3a12f686 Mon Sep 17 00:00:00 2001 From: Kay Hau Date: Tue, 14 Nov 2023 07:45:30 +1100 Subject: [PATCH] Added .pre-commit-config.yaml --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..e70ac21e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: local + hooks: + - id: trufflehog + name: TruffleHog + description: Detect secrets in your data. + entry: bash -c 'trufflehog git file://. --since-commit HEAD --only-verified --fail' + # For running trufflehog in docker, use the following entry instead: + # entry: bash -c 'docker run --rm -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --since-commit HEAD --only-verified --fail' + language: system + stages: ["commit", "push"]