Browse Source

Update default whitelist to include gitleaks.toml

Peter Gallagher 6 years ago
parent
commit
31903d1a80
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/default.go

+ 2 - 2
config/default.go

@@ -128,6 +128,6 @@ title = "gitleaks config"
 	tags = ["key", "twilio"]
 
 [whitelist]
-	description = "image whitelists"
-	file = '''(.*?)(jpg|gif|doc|pdf|bin)$'''
+	description = "Whitelisted files"
+	file = '''(^\.?gitleaks.toml$|(.*?)(jpg|gif|doc|pdf|bin)$)'''
 `