Dotgit bug (#488)

* fix allowlist bug

* Adding new repo for testing allowlisting

* adding additional constraints on the dotgit regex
This commit is contained in:
Zachary Rice authored and GitHub committed 2020-12-10 17:41:26 -05:00
1 parent 2d58f1f94e
commit f036dce6ab
5 files changed
+41 -3

No files matched your search

+1 -1
View File
@@ -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''']