mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
chore: match gitleaks.toml anywhere (#1553)
This commit is contained in:
1 parent
b2fbaeb900
commit
14c924dd02
2 files changed
+2
-2
No files matched your search
@@ -31,7 +31,7 @@ func CreateGlobalConfig() config.Config {
|
|||||||
regexp.MustCompile(`^\${([A-Z_]+|[a-z_]+)}$`),
|
regexp.MustCompile(`^\${([A-Z_]+|[a-z_]+)}$`),
|
||||||
},
|
},
|
||||||
Paths: []*regexp.Regexp{
|
Paths: []*regexp.Regexp{
|
||||||
regexp.MustCompile(`^gitleaks\.toml$`),
|
regexp.MustCompile(`gitleaks\.toml`),
|
||||||
|
|
||||||
// ----------- Documents and media -----------
|
// ----------- Documents and media -----------
|
||||||
regexp.MustCompile(`(?i)\.(bmp|gif|jpe?g|svg|tiff?)$`),
|
regexp.MustCompile(`(?i)\.(bmp|gif|jpe?g|svg|tiff?)$`),
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ regexes = [
|
|||||||
'''^\${([A-Z_]+|[a-z_]+)}$''',
|
'''^\${([A-Z_]+|[a-z_]+)}$''',
|
||||||
]
|
]
|
||||||
paths = [
|
paths = [
|
||||||
'''^gitleaks\.toml$''',
|
'''gitleaks\.toml''',
|
||||||
'''(?i)\.(bmp|gif|jpe?g|svg|tiff?)$''',
|
'''(?i)\.(bmp|gif|jpe?g|svg|tiff?)$''',
|
||||||
'''(.*?)(doc|docx|zip|xls|pdf|bin|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe|gltf)$''',
|
'''(.*?)(doc|docx|zip|xls|pdf|bin|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe|gltf)$''',
|
||||||
'''go\.(mod|sum|work(\.sum)?)$''',
|
'''go\.(mod|sum|work(\.sum)?)$''',
|
||||||
|
|||||||
Reference in new issue
Block a user