-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
50 lines (42 loc) · 1.13 KB
/
Copy path.gitleaks.toml
File metadata and controls
50 lines (42 loc) · 1.13 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
# Gitleaks configuration for Am I Alive project
# Detects secrets before they reach GitHub
title = "Am I Alive - Secret Detection"
[extend]
# Use default gitleaks rules
useDefault = true
# Custom rules for this project
[[rules]]
id = "telegram-bot-token"
description = "Telegram Bot Token"
regex = '''(?i)\d{8,10}:[a-zA-Z0-9_-]{35}'''
tags = ["telegram", "token"]
[[rules]]
id = "openrouter-api-key"
description = "OpenRouter API Key"
regex = '''sk-or-v1-[a-f0-9]{64}'''
tags = ["openrouter", "api-key"]
[[rules]]
id = "gemini-api-key"
description = "Google Gemini API Key"
regex = '''AIza[a-zA-Z0-9_-]{35}'''
tags = ["gemini", "google", "api-key"]
[[rules]]
id = "twitter-api-key"
description = "Twitter/X API Key or Token"
regex = '''(?i)(twitter|x_).*["\s:=]+[a-zA-Z0-9]{20,}'''
tags = ["twitter", "x", "api-key"]
# Allowlist - files that should never be scanned
[allowlist]
paths = [
'''\.env\.example$''',
'''\.env\.template$''',
'''README\.md$''',
'''CLAUDE\.md$'''
]
# Stop scanning certain patterns that are safe
regexes = [
'''REPLACE_WITH_.*''',
'''YOUR_.*_HERE''',
'''example\.com''',
'''placeholder'''
]