From 7abae0d079e8c99a8f1eb73861b65e6766e45018 Mon Sep 17 00:00:00 2001 From: Karan Jariwala Date: Mon, 26 Jun 2023 10:00:18 -0700 Subject: [PATCH] Add secrets check as part of pre-commit (#360) --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00e55dad38..881a6bafec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,3 +89,12 @@ repos: entry: yamllint language: python types: [file, yaml] +- repo: https://github.com/trufflesecurity/trufflehog.git + rev: v3.40.0 + hooks: + - id: trufflehog + name: secret scan + entry: trufflehog filesystem ./ + args: + - --only-verified + - --fail