Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/scan_tools_configs/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ regexes = [
'''(?i)\bexample_secret\s*='''
]

[[allowlists]]
description = "Model names and runtime keys: identifiers, not credentials"
# `generic-api-key` fires on any identifier containing "key" that is followed by
# a high-entropy-looking string. These field names hold a model name
# ("Qwen3-0.6B-GGUF") or the key that names an installed runtime
# ("wheel-gfx942-7.13.0"); the Rust unit tests assign literal values to them.
# Anchored on the identifier and the assignment, like the entry above.
regexTarget = "match"
regexes = [
'''(?i)\b(runtime_key|api_model)\s*[:=]\s*"''',
]

[[allowlists]]
description = "Public artifact digests (variable names ending in SHA256/512/MD5)"
# SHA-256/512/MD5 hashes of public artifacts are not secrets.
Expand Down
Loading