-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitleaks.toml
More file actions
33 lines (29 loc) · 833 Bytes
/
.gitleaks.toml
File metadata and controls
33 lines (29 loc) · 833 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
# Gitleaks configuration file
# This file excludes false positives from test files containing AES keys
[allowlist]
# Allow AES keys in test files and config
description = "Allow AES keys in test files and configuration"
paths = [
"**/*_test.go",
"**/testdata/**",
"**/config.yaml"
]
# Allow specific test patterns
[[allowlist.rules]]
id = "generic-api-key"
description = "Allow test AES keys"
regex = '''1234567890123456'''
# Allow base64 encoded test data
[[allowlist.rules]]
id = "generic-api-key"
description = "Allow base64 encoded test data"
regex = '''dXNlcm5hbWU=|cGFzc3dvcmQ='''
# Allow KUBEXPORTER_AES prefix in test files
[[allowlist.rules]]
id = "generic-api-key"
description = "Allow KUBEXPORTER_AES prefix in test files"
regex = '''KUBEXPORTER_AES@'''
paths = [
"**/*_test.go",
"**/testdata/**"
]