ci: fix gitleaks no-op ruleset (add useDefault = true)
This commit is contained in:
+22
-6
@@ -1,12 +1,28 @@
|
|||||||
# Slack export fixtures historically embedded expired xoxe URL tokens.
|
# Homelab bootstrap — gitleaks allowlist (tests, examples, placeholders)
|
||||||
# Working tree is redacted to xoxe-REDACTED; allowlist covers pre-redaction commits.
|
#
|
||||||
title = "slack-sieve"
|
# IMPORTANT: `useDefault = true` is required — without it gitleaks loads ONLY
|
||||||
|
# this file (title + allowlist) with ZERO detection rules, so it would never
|
||||||
|
# flag a real secret. Fixed 2026-07 (security-hardening track); if you're
|
||||||
|
# re-pushing this template to a repo that already had the old version, that
|
||||||
|
# repo's secret scanning was a no-op until this lands.
|
||||||
|
title = "homelab gitea bootstrap"
|
||||||
|
|
||||||
|
[extend]
|
||||||
|
useDefault = true
|
||||||
|
|
||||||
[allowlist]
|
[allowlist]
|
||||||
description = "Test fixtures (tokens redacted going forward)"
|
description = "Test fixtures and example configs are not production secrets"
|
||||||
paths = [
|
paths = [
|
||||||
'''tests/fixtures/.*''',
|
'''(?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 = [
|
regexes = [
|
||||||
'''xoxe-REDACTED''',
|
'''(?i)(invalid|fake|dummy|placeholder|example|changeme|change_me|not-a-real)''',
|
||||||
|
'''(?i)sk-or-invalid''',
|
||||||
|
'''(?i)msk-or-invalid''',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user