瀏覽代碼

Whitelist files not being parsed (#375)

It seems that there is a typo on the default rules.
Marlon Pina Tojal 6 年之前
父節點
當前提交
0faebdefea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config/default.go

+ 1 - 1
config/default.go

@@ -138,5 +138,5 @@ title = "gitleaks config"
 
 [whitelist]
 	description = "Whitelisted files"
-	file = '''(^\.?gitleaks.toml$|(.*?)(jpg|gif|doc|pdf|bin)$)'''
+	files = [ '''(^\.?gitleaks.toml$|(.*?)(jpg|gif|doc|pdf|bin)$)''' ]
 `