-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitleaks.toml
47 lines (39 loc) · 1.05 KB
/
.gitleaks.toml
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
43
44
45
46
[extend]
useDefault = true
[allowlist]
description = "whitelist"
regexTarget = "match"
regexes = [
'''flake8''',
]
[[rules]]
id = "gtid-pattern"
description = "Detect GTIDs in code"
regex = '''\b90\d{7}\b'''
tags = ["gtid"]
[[rules]]
id = "gt-emails"
description = "Detect Emails in code"
regex = '''\b\w{1,64}@\w{1,253}\.\w{2,63}\b'''
tags = ["emails"]
# Rules for different GT Username formats over the years.
[[rules]]
id = "gt-mid90s-username"
description = "Detect Mid-90s GT Usernames"
regex = '''\bgt[1-9][0-9]{3}[A-z]\b'''
tags = ["gt-username", "legacy"]
[[rules]]
id = "gt-late90s-username"
description = "Detect Late-90s GT Usernames"
regex = '''\bgt[A-z][1-9][0-9]{2}[A-z]\b'''
tags = ["gt-username", "legacy"]
[[rules]]
id = "gt-staff-username"
description = "Detect GT Staff Usernames"
regex = '''\b[A-z]{2}[1-9][0-9]{0,3}\b'''
tags = ["gt-username", "staff"]
[[rules]]
id = "gt-current-username"
description = "Detect Current GT Usernames"
regex = '''\b[A-z][A-z]{0,17}[aeiouyAEIOUY][A-z]{0,17}[1-9][0-9]{0,3}\b'''
tags = ["gt-username", "current"]