瀏覽代碼

Merge pull request #302 from petegallagher/whitelist-gitleaks.toml

Update default whitelist to include gitleaks.toml
Zachary Rice 6 年之前
父節點
當前提交
ef38b69c39
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      config/default.go

+ 2 - 2
config/default.go

@@ -133,6 +133,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)$)'''
 `