Skip to content

Commit c3a8293

Browse files
committed
fix ignore patches
Signed-off-by: Maksim Khimchenko <maksim.khimchenko@flant.com>
1 parent 353366f commit c3a8293

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

gitleaks/config/gitleaks.base.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ useDefault = true
1313
# Global allowlists
1414
[allowlist]
1515

16+
regexTarget = "line"
17+
1618
# === Safe files/directories ===
1719
# NOTE: Use exact paths, NOT glob patterns like **/go.mod
1820

@@ -21,9 +23,6 @@ paths = [
2123
"go.mod",
2224
"go.sum",
2325

24-
# patch files
25-
".*/*.patch",
26-
2726
# Specific files with known false positives
2827
# "modules/101-cert-manager/docs/USAGE.md",
2928
# "modules/101-cert-manager/docs/USAGE_RU.md",
@@ -32,10 +31,10 @@ paths = [
3231
# === Safe patterns ===
3332
regexes = [
3433
# Go module checksums - always public
35-
'''h1:[A-Za-z0-9+/=]{40,}''',
34+
'''.*h1:[A-Za-z0-9+/=]{40,}''',
3635

3736
# Public certificates (only ca.crt, NOT private keys!)
38-
'''data:\s*\n\s*ca\.crt:\s*[A-Za-z0-9+/=\s]+''',
37+
'''ca\.crt:\s*[A-Za-z0-9+/=]+''',
3938

4039
# AWS Example values from official documentation - exact match
4140
'''AKIAIOSFODNN7EXAMPLE''',

0 commit comments

Comments
 (0)