File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Centralized Gitleaks configuration for all Deckhouse repositories
22# This file is distributed via modules-actions/gitleaks action
3- #
3+ #
44# Repositories can extend this config by creating local .gitleaks.toml:
55# [extend]
66# useDefault = false
@@ -13,14 +13,16 @@ 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
1921paths = [
2022 # Go dependencies - public hashes
2123 " go.mod" ,
2224 " go.sum" ,
23-
25+
2426 # Specific files with known false positives
2527 # "modules/101-cert-manager/docs/USAGE.md",
2628 # "modules/101-cert-manager/docs/USAGE_RU.md",
@@ -29,11 +31,8 @@ paths = [
2931# === Safe patterns ===
3032regexes = [
3133 # Go module checksums - always public
32- ''' h1:[A-Za-z0-9+/=]{40,}''' ,
33-
34- # Public certificates (only ca.crt, NOT private keys!)
35- ''' data:\s*\n\s*ca\.crt:\s*[A-Za-z0-9+/=\s]+''' ,
36-
34+ ''' h1:[A-Za-z0-9+/=]{12,}''' ,
35+
3736 # AWS Example values from official documentation - exact match
3837 ''' AKIAIOSFODNN7EXAMPLE''' ,
3938 ''' wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY''' ,
You can’t perform that action at this time.
0 commit comments