From 1fbe1d76827d5ba1cb2a9683f0ff9d78744ca91e Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 24 Jul 2025 01:29:41 +1000 Subject: [PATCH] pre-commit: add gitleaks to detect hardcoded secrets (#11064) --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f14b84608c8..85bba502116 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,12 @@ repos: hooks: - id: identity - id: check-hooks-apply + - repo: https://github.com/gitleaks/gitleaks + rev: v8.27.2 + hooks: + - id: gitleaks + name: run gitleaks + description: detect hardcoded secrets - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: