From 0bc8f28ffec7a84d4cf59a0c3a884b0d7b4ec5b3 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 21 Jun 2025 01:23:35 +1000 Subject: [PATCH] pre-commit: add gitleaks to detect hardcoded secrets --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9bc87454f1c..93ed523fe2e6 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: