Fix .gitleaks.toml config syntax
regexTarget is a string field, not an array of objects. Use the correct allowlist format with regexes array. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f009ae80b6
commit
38e5b1ce25
1 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[extend]
|
[allowlist]
|
||||||
# Use default gitleaks rules
|
|
||||||
|
|
||||||
[[allowlist.regexTarget]]
|
|
||||||
# Sentry DSNs are public (ingest-only, not secrets)
|
# Sentry DSNs are public (ingest-only, not secrets)
|
||||||
description = "Sentry DSN"
|
description = "Allow Sentry DSNs"
|
||||||
regex = '''https://[a-f0-9]+@o\d+\.ingest\.\w+\.sentry\.io/\d+'''
|
regexTarget = "line"
|
||||||
|
regexes = [
|
||||||
|
'''https://[a-f0-9]+@o\d+\.ingest\.\w+\.sentry\.io/\d+''',
|
||||||
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue