diff --git a/.gitleaks.toml b/.gitleaks.toml index 474a933..89a038d 100644 --- a/.gitleaks.toml +++ b/.gitleaks.toml @@ -23,3 +23,7 @@ id = "private-key" description = "Private key detected" regex = "-----BEGIN( RSA| EC| DSA)? PRIVATE KEY-----" tags = ["key", "pem", "compose"] + +[[allowlists]] +description = "Ignore example and sample env files" +paths = ['''.*\.env\.sample$''', '''.*\.env\.example$''', '''.*example.*''']