Gitleaks 8.x flags the literal string "idempotency-key" (header name)
and any quoted "token: …" inside test fixtures as generic-api-keys.
Both are non-secrets — header name + opaque test-only UUIDs / placeholder
"hlk_example_…" tokens used in route tests and the OpenAPI spec.
Adds a `.gitleaks.toml` extending the default ruleset with:
- path allowlist for `**/__tests__/**` and `*.test.ts`
- path allowlist for `docs/api/openapi.yaml`
- substring allowlist for `idempotency-key` and `hlk_example`
No real secret bypass: the existing `hlk_<64-hex>` regex still triggers
on any non-`hlk_example` prefix, so a real token leak would still fail
the scan.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>