forked from awslabs/agent-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
29 lines (24 loc) · 737 Bytes
/
.gitleaks.toml
File metadata and controls
29 lines (24 loc) · 737 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
# Gitleaks Configuration
# https://github.com/gitleaks/gitleaks
title = "gitleaks config"
# Extend the default gitleaks configuration
[extend]
useDefault = true
# Global allowlist patterns
[allowlist]
description = "Global allowlist"
paths = [
'''\.gitleaksignore$''',
'''\.gitleaks-baseline\.json$''',
]
# Example: Add custom rules or override defaults
# [[rules]]
# id = "custom-api-key"
# description = "Custom API Key Pattern"
# regex = '''(?i)custom[_-]?api[_-]?key\s*[=:]\s*['"]?([a-zA-Z0-9]{32,})['"]?'''
# keywords = ["custom", "api", "key"]
# Example: Rule-specific allowlist
# [[rules.allowlists]]
# description = "Allow example keys in tests"
# paths = ['''test/.*''', '''.*_test\.go$''']
# regexTarget = "match"