mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
Dotgit bug (#488)
* fix allowlist bug * Adding new repo for testing allowlisting * adding additional constraints on the dotgit regex
This commit is contained in:
1 parent
2d58f1f94e
commit
f036dce6ab
5 files changed
+41
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
[[rules]]
|
||||
description = "Block dangerous filetypes"
|
||||
file = '''(.*?)(pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$'''
|
||||
file = '''(.*?)(gitfile.txt|gitignore|pdf|doc|docx|zip|xls|tfplan|tfstate|tfvars|vault_pass|vagrant|pyc|key|cache)$'''
|
||||
tags = ["key", "extensions"]
|
||||
[rules.allowlist]
|
||||
paths = ['''.docx''']
|
||||
|
||||
Reference in new issue
Block a user