From 481ad4b43ea088e88412f21f5e2afae595c49de5 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Thu, 2 Apr 2026 23:40:26 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20allowlist=20=E2=80=94=20add=20regexTarge?= =?UTF-8?q?t=3Dmatch=20for=20global=20allowlist;=20allow=20Python=20privat?= =?UTF-8?q?e=20fn=20on=20RHS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitleaks.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitleaks.toml b/gitleaks.toml index ac69c23..ca4344a 100644 --- a/gitleaks.toml +++ b/gitleaks.toml @@ -61,4 +61,7 @@ regexes = [ 'sk-abcdefghijklmnopqrstuvwxyz', 'your-forgejo-api-token-here', 'your-[a-z\-]+-here', + # Python private function/variable on RHS — token = _some_func() is not a secret + '=\s+_[a-z_]{10,}', ] +regexTarget = "match"