From c87d895802c9bdb9218708282d2c3713bbd04299 Mon Sep 17 00:00:00 2001 From: Denis Olehov Date: Thu, 16 Jun 2022 22:12:41 +0200 Subject: [PATCH] Fix .gitleaks.toml template (#3036) Use `paths` for the `[allowlist]` section instead of an invalid `files` --- TEMPLATES/.gitleaks.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEMPLATES/.gitleaks.toml b/TEMPLATES/.gitleaks.toml index b46fc601..981e5ff3 100644 --- a/TEMPLATES/.gitleaks.toml +++ b/TEMPLATES/.gitleaks.toml @@ -170,6 +170,6 @@ title = "gitleaks config" [allowlist] description = "Allowlisted files" - files = ['''^\.?gitleaks.toml$''', + paths = ['''^\.?gitleaks.toml$''', '''(.*?)(png|jpg|gif|doc|docx|pdf|bin|xls|pyc|zip)$''', '''(go.mod|go.sum)$''']