mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +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_]+)}$`),
|
||||
},
|
||||
Paths: []*regexp.Regexp{
|
||||
regexp.MustCompile(`^gitleaks\.toml$`),
|
||||
regexp.MustCompile(`gitleaks\.toml`),
|
||||
|
||||
// ----------- Documents and media -----------
|
||||
regexp.MustCompile(`(?i)\.(bmp|gif|jpe?g|svg|tiff?)$`),
|
||||
|
||||
@@ -23,7 +23,7 @@ regexes = [
|
||||
'''^\${([A-Z_]+|[a-z_]+)}$''',
|
||||
]
|
||||
paths = [
|
||||
'''^gitleaks\.toml$''',
|
||||
'''gitleaks\.toml''',
|
||||
'''(?i)\.(bmp|gif|jpe?g|svg|tiff?)$''',
|
||||
'''(.*?)(doc|docx|zip|xls|pdf|bin|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe|gltf)$''',
|
||||
'''go\.(mod|sum|work(\.sum)?)$''',
|
||||
|
||||
Reference in new issue
Block a user