-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Expand file tree
/
Copy path.gitleaks.toml
More file actions
19 lines (17 loc) · 599 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
19 lines (17 loc) · 599 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
title = "GitNexus"
[extend]
useDefault = true
# Fake credentials in unit tests — none are real secrets:
# - embedding API keys in the http-embedder tests (regexes below)
# - synthetic GitHub PAT fixtures in the git-clone PAT-injection tests
# (e.g. ghp_secret123, ghp_uniqueRawSecret_98765) — allowlisted by path
# so the exception is bounded to that one test file.
[allowlist]
description = "fake credentials in unit tests (no real secrets)"
regexes = [
'''secret-key-12345''',
'''test-api-key-redaction-check''',
]
paths = [
'''gitnexus/test/unit/git-clone\.test\.ts''',
]