From 18a9fbbeba58f05a6b9e91d7698b7e1d5e8d93a4 Mon Sep 17 00:00:00 2001 From: BeastImran <74952943+BeastImran@users.noreply.github.com> Date: Fri, 2 May 2025 10:36:55 +0530 Subject: [PATCH] Update PreCommit.md hook id `trufflehog` uses deprecated stage names (commit, push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. --- PreCommit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PreCommit.md b/PreCommit.md index be0925e59679..4811e25e60bc 100644 --- a/PreCommit.md +++ b/PreCommit.md @@ -97,7 +97,7 @@ repos: description: Detect secrets in your data. entry: bash -c 'trufflehog git file://. --since-commit HEAD --results=verified,unknown --fail' language: system - stages: ["commit", "push"] + stages: ["pre-commit", "pre-push"] ``` 2. Install the pre-commit hook: