Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix(ci): extend gitleaks allowlist to cover test fixtures + verified examples (#1539)

Tejas Choprad2565a6983f9
diff --git a/.gitleaks.toml b/.gitleaks.toml
index 2b505c927..392d904b9 100644
--- a/.gitleaks.toml
+++ b/.gitleaks.toml
@@ -6,10 +6,22 @@
useDefault = true
[allowlist]
-description = "Non-secret artifacts: SBOMs, lockfiles, and vendored hashes."
+description = "Non-secret artifacts: SBOMs, lockfiles, vendored hashes, test/benchmark fixtures, and verified example values."
paths = [
'''sbom/.*''',
'''.*\.lock$''',
'''.*package-lock\.json$''',
'''pnpm-lock\.yaml$''',
+ # Test / benchmark / parity trees use synthetic JWTs and API keys by design.
+ '''(^|/)tests/''',
+ '''(^|/)benchmarks/''',
+ '''crates/.*/(tests|benches)/''',
+]
+# Verified non-secret strings that appear in production source. Kept narrow
+# (exact tokens) so a genuine secret in these files would still be caught.
+regexes = [
+ '''eyJhbGciOiJIUzI1NiIs''', # example JWT header prefix in a docstring (headroom/config.py)
+ '''sk-ant-dummy''', # documented placeholder key in the CLI banner (headroom/cli/proxy.py)
+ '''ANTHROPIC_API_KEY=''', # env-var NAME shown in CLI help text (headroom/cli/proxy.py)
+ '''Iv1\.b507a08c87ecfe98''', # GitHub Copilot PUBLIC OAuth client_id (not a secret)
]