-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
23 lines (21 loc) · 807 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
23 lines (21 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Gitleaks config. Tightens defaults and allows known dev/test fixtures.
# Run locally with: gitleaks detect --config .gitleaks.toml
# Run on a PR diff: gitleaks protect --staged --config .gitleaks.toml
# Inherit gitleaks's bundled rules — they catch JWT/AWS/GCP/Slack/etc.
[extend]
useDefault = true
[allowlist]
description = "Test fixtures and documented dev placeholders"
paths = [
'''src/test/resources/application-test\.properties$''',
'''\.env\.example$''',
'''README\.md$''',
'''scripts/seed/.*\.json$''',
]
# Don't flag the fixed test JWT secret or the deterministic test AES key.
regexes = [
'''test-secret-test-secret-test-secret-test-secret-test-secret-1234''',
'''AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8=''',
'''replace-with-[a-z0-9-]+''',
'''\$\{[A-Z_]+:[^}]*\}''',
]