ci: add homelab gitleaks allowlist
This commit is contained in:
parent
abac48cc79
commit
edd0ee07b0
19
.gitleaks.toml
Normal file
19
.gitleaks.toml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Homelab bootstrap — gitleaks allowlist (tests, examples, placeholders)
|
||||||
|
title = "homelab gitea bootstrap"
|
||||||
|
|
||||||
|
[allowlist]
|
||||||
|
description = "Test fixtures and example configs are not production secrets"
|
||||||
|
paths = [
|
||||||
|
'''(?i).*\.test\.(ts|tsx|js|jsx|py)$''',
|
||||||
|
'''(?i).*\.spec\.(ts|tsx|js|jsx)$''',
|
||||||
|
'''(?i).*/tests/.*''',
|
||||||
|
'''(?i).*/__tests__/.*''',
|
||||||
|
'''(?i).*\.example\.(yml|yaml|env|json|toml)$''',
|
||||||
|
'''(?i).*vault\.example\.(yml|yaml)$''',
|
||||||
|
'''(?i).*\.env\.example$''',
|
||||||
|
]
|
||||||
|
regexes = [
|
||||||
|
'''(?i)(invalid|fake|dummy|placeholder|example|changeme|change_me|not-a-real)''',
|
||||||
|
'''(?i)sk-or-invalid''',
|
||||||
|
'''(?i)msk-or-invalid''',
|
||||||
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user