-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy path.gitleaks.toml
More file actions
35 lines (32 loc) · 732 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
35 lines (32 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[build]
verbose = false
max_target_size = 10485760
[allowlist]
description = "Allowlist for known patterns that are not secrets"
paths = [
"(?i)node_modules/",
"(?i)\\.pnpm-store/",
"(?i)\\.next/",
"(?i)dist/",
"(?i)build/",
"(?i)coverage/",
"(?i)\\.env\\.example$",
"(?i)package-lock\\.json$",
"(?i)pnpm-lock\\.yaml$",
]
regexes = [
"\\$\\{[A-Z_]+\\}",
"\\$\\([A-Z_]+\\)",
"<[A-Z_]+>",
]
# Allowlist specific false positives
[[rules]]
description = "Allow template strings with placeholders"
id = "generic-api-key"
pattern = "(?i)(api[_-]?key|password|secret|token)\\s*[=:]{1,2}\\s*['\\\"]?\\$\\{[^}]+\\}['\\\"]?"
allowlist = { paths = [
"\\.env\\.example",
"docs/",
"README\\.md",
"\\.md$",
] }