mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
feat(config): add placeholder regexes to global allowlist (#1547)
This commit is contained in:
1 parent
00bb82153e
commit
b2fbaeb900
4 files changed
+112
-15
No files matched your search
+13
-6
@@ -12,6 +12,16 @@ title = "gitleaks config"
|
||||
|
||||
[allowlist]
|
||||
description = "global allow lists"
|
||||
regexes = [
|
||||
'''(?i)^true|false|null$''',
|
||||
'''^\{\{[ \t]*[\w ().|]+[ \t]*}}$''',
|
||||
'''^\$\{\{[ \t]*((env|github|secrets|vars)(\.[A-Za-z]\w+)+[\w "'&./=|]*)[ \t]*}}$''',
|
||||
'''^%([A-Z_]+|[a-z_]+)%$''',
|
||||
'''^@([A-Z_]+|[a-z_]+)@$''',
|
||||
'''^\$(\d+|{\d+})$''',
|
||||
'''^\$([A-Z_]+|[a-z_]+)$''',
|
||||
'''^\${([A-Z_]+|[a-z_]+)}$''',
|
||||
]
|
||||
paths = [
|
||||
'''^gitleaks\.toml$''',
|
||||
'''(?i)\.(bmp|gif|jpe?g|svg|tiff?)$''',
|
||||
@@ -2149,7 +2159,6 @@ path = '''(?i)\.ya?ml$'''
|
||||
keywords = ["secret"]
|
||||
|
||||
[rules.allowlist]
|
||||
|
||||
regexes = [
|
||||
'''[\w.-]+:(?:[ \t]*(?:\||>[-+]?)\s+)?[ \t]*(?:\{\{[ \t\w"|$:=,.-]+}}|""|'')''',
|
||||
]
|
||||
@@ -2336,9 +2345,10 @@ entropy = 1
|
||||
keywords = ["<add key="]
|
||||
|
||||
[rules.allowlist]
|
||||
|
||||
regexes = [
|
||||
'''33f!!lloppa''','''hal\+9ooo_da!sY''','''^\%\S.*\%$''',
|
||||
'''33f!!lloppa''',
|
||||
'''hal\+9ooo_da!sY''',
|
||||
'''^\%\S.*\%$''',
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
@@ -2665,7 +2675,6 @@ entropy = 3
|
||||
keywords = ["sumo"]
|
||||
|
||||
[rules.allowlist]
|
||||
|
||||
regexTarget = "line"
|
||||
regexes = [
|
||||
'''sumOf''',
|
||||
@@ -2755,7 +2764,6 @@ keywords = [
|
||||
]
|
||||
|
||||
[rules.allowlist]
|
||||
|
||||
regexes = [
|
||||
'''s\.[A-Za-z]{24}''',
|
||||
]
|
||||
@@ -2784,4 +2792,3 @@ description = "Detected a Zendesk Secret Key, risking unauthorized access to cus
|
||||
regex = '''(?i)(?:zendesk)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = ["zendesk"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user