-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitleaks.toml
More file actions
42 lines (38 loc) · 887 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
42 lines (38 loc) · 887 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
37
38
39
40
41
42
title = "freeswitch-log-parser gitleaks config"
[[rules]]
id = "phone-number-e164"
description = "E.164 phone number (North American +1XXXXXXXXXX)"
regex = '''\+1[2-9]\d{9}\b'''
tags = ["pii", "phone"]
[rules.allowlist]
regexTarget = "match"
regexes = [
'''\+1555\d{7}''',
]
[[rules]]
id = "phone-number-nanp"
description = "NANP phone number (10 digits, no country code)"
regex = '''\b[2-9]\d{2}[2-9]\d{6}\b'''
tags = ["pii", "phone"]
[rules.allowlist]
regexTarget = "match"
regexes = [
'''555\d{7}''',
'''911555\d{4}''',
]
[[rules]]
id = "phone-number-parens"
description = "Phone number with parentheses (XXX) XXX-XXXX"
regex = '''\([2-9]\d{2}\)\s?\d{3}-\d{4}'''
tags = ["pii", "phone"]
[rules.allowlist]
regexTarget = "match"
regexes = [
'''\(555\)''',
]
[allowlist]
description = "Global allowlist"
paths = [
'''tests/fixtures/''',
'''tests/production_log\.rs''',
]