forked from SoroLabs/SoroTask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
30 lines (26 loc) · 742 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
30 lines (26 loc) · 742 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
title = "Gitleaks Config for SoroTask"
# Extend the default ruleset
[extend]
useDefault = true
# Define custom rules
[[rules]]
id = "sorolab-api-key"
description = "SoroLabs API Key pattern"
regex = '''(?i)(sorolab[_-]?api[_-]?key|sorolab[_-]?secret)\s*=\s*['\"]?[a-z0-9]{32,}['\"]?'''
secretGroup = 3
entropy = 5.0
# Allowlist patterns - files or paths to exclude
[allowlist]
description = "Allowlist configuration"
paths = [
# Test fixtures and mocks
'''(test_snapshots|__tests__|test|spec)''',
# Documentation examples
'''(docs|README|CHANGELOG)''',
# Config files
'''\.(env\.example|env\.template|env\.sample)$''',
# Dependencies and build artifacts
'''(node_modules|target|dist|build)''',
]
commits = []
regexes = []