chore: match gitleaks.toml anywhere (#1553)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-10-08 09:39:44 -05:00
1 parent b2fbaeb900
commit 14c924dd02
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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?)$`),
+1 -1
View File
@@ -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)?)$''',