Repository navigation
test(cost): OpenAI fixture keys read as obvious fakes - #2579
Merged
Merged
Maple Review Bot / Maple / review
succeeded
Nov 14, 2026 in 19s
Confidence 10/10 · No issues found
🟢 Confidence 10/10 · safe to merge. Fixture-only edit: the new placeholder still matches couldBeKey's shape check and every assertion compares against the constant.
no findings · tests not needed · risk low
Replaces the OpenAI admin-key fixtures in two cost tests with obvious fakes so secret scanning stops flagging them. The placeholders still satisfy the key-shape check and every assertion compares against the constant, so the tests are unaffected.
KEY/OTHER_KEYinOpenAiCostConnectionService.test.tsandKEYinOpenAiCostProvider.test.tsare now fake-looking placeholders
What was checked
couldBeKeyinOpenAiCostConnectionService.ts:43accepts the new value: printable, no space, under the max length- Assertions use the constants (
Bearer ${KEY}, ciphertext difference), so no literal key string is pinned fake-openai.ts:133only records the Authorization header, it does not compare it to a fixed key
30af059 · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.
Loading