-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
36 lines (30 loc) · 812 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
36 lines (30 loc) · 812 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
36
# Gitleaks configuration
# https://github.com/gitleaks/gitleaks
title = "MACA Gitleaks Configuration"
[extend]
# Extend the default gitleaks config
useDefault = true
[allowlist]
description = "Allowlisted files and patterns"
paths = [
'''package-lock\.json$''',
'''\.secrets\.baseline$''',
'''\.gitleaks\.toml$''',
]
# Example patterns to allow (add as needed)
regexes = [
# Example API key placeholder patterns
'''(?i)YOUR[-_]?API[-_]?KEY''',
'''(?i)EXAMPLE[-_]?KEY''',
'''(?i)sk-[a-zA-Z0-9]{20}\.\.\.''',
]
[[rules]]
id = "example-api-key"
description = "Example/placeholder API keys"
regex = '''(?i)(example|test|dummy|fake|placeholder)[-_]?(api[-_]?)?key'''
tags = ["example", "placeholder"]
[rules.allowlist]
regexes = [
'''(?i)example''',
'''(?i)placeholder''',
]