Explorar o código

Whitelist files not being parsed (#375)

It seems that there is a typo on the default rules.
Marlon Pina Tojal %!s(int64=5) %!d(string=hai) anos
pai
achega
0faebdefea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)$)''' ]
 `