-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
58 lines (51 loc) · 1.38 KB
/
Copy path.gitleaks.toml
File metadata and controls
58 lines (51 loc) · 1.38 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
# Gitleaks Configuration
# Custom rules and allowlists for the DevSecOps project
title = "Gitleaks Configuration"
[extend]
# Use default gitleaks rules
useDefault = true
# Allow test credentials and examples
[allowlist]
description = "Allowed patterns for documentation and examples"
regexTarget = "line"
regexes = [
# Allow example placeholders
'''EXAMPLE''',
'''example''',
'''placeholder''',
'''your-.*-here''',
# Allow Terraform variable references
'''var\..*''',
# Allow environment variable references
'''\$\{.*\}''',
]
paths = [
# Documentation files
'''README\.md''',
'''CI-CD-JOBS-GUIDE\.md''',
'''.*\.example''',
# Test files
'''.*test.*''',
'''.*spec.*''',
]
# Additional rules for cloud credentials
[[rules]]
id = "aws-access-key-id"
description = "AWS Access Key ID"
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
tags = ["aws", "credentials"]
[[rules]]
id = "github-personal-access-token"
description = "GitHub Personal Access Token"
regex = '''ghp_[a-zA-Z0-9]{36}'''
tags = ["github", "token"]
[[rules]]
id = "github-oauth-access-token"
description = "GitHub OAuth Access Token"
regex = '''gho_[a-zA-Z0-9]{36}'''
tags = ["github", "token", "oauth"]
[[rules]]
id = "github-app-token"
description = "GitHub App Token"
regex = '''(ghu|ghs)_[a-zA-Z0-9]{36}'''
tags = ["github", "token", "app"]