File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ===
3332regexes = [
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''' ,
You can’t perform that action at this time.
0 commit comments