Skip to content

Commit dc37243

Browse files
committed
feat: füge Gitleaks-Konfigurationsdatei hinzu und entferne die Gitleaks-Ignore-Datei
1 parent fd4a5c6 commit dc37243

File tree

2 files changed

+44
-14
lines changed

2 files changed

+44
-14
lines changed

.gitleaks.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Gitleaks configuration file
2+
# This file configures gitleaks security scanning
3+
4+
title = "Gitleaks Config for NocoDB Simple Client"
5+
6+
# Extend the default gitleaks config
7+
extend-path = ""
8+
9+
# Rules configuration
10+
[extend]
11+
# Use default rules but add custom allowlists
12+
13+
# Allowlist configuration - paths to ignore during scanning
14+
[allowlist]
15+
description = "Allowlist for test files and documentation"
16+
17+
# Ignore all files in tests directory
18+
paths = [
19+
'''tests/.*''',
20+
'''tests/''',
21+
'''examples/.*''',
22+
'''examples/''',
23+
'''docs/.*''',
24+
'''docs/''',
25+
'''.*\.md''',
26+
'''.*\.MD''',
27+
]
28+
29+
# Ignore specific file patterns that commonly contain test data
30+
regexes = [
31+
'''(?i)test.*password.*=.*dummy''',
32+
'''(?i)test.*token.*=.*fake''',
33+
'''(?i)example.*key.*=.*placeholder''',
34+
]
35+
36+
# Stop words that indicate test/example content
37+
stopwords = [
38+
"test",
39+
"example",
40+
"dummy",
41+
"fake",
42+
"placeholder",
43+
"mock",
44+
]

.gitleaksignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)