fix(test): assemble the Muse key fixture so privacy:scan stays green - #3443
Conversation
#3437 added the fixture as a literal, which privacy:scan's meta-api-key rule matches: it detects the real key grammar and cannot tell a fake from a real one. That is the scanner doing its job, and it has been red on dev since that merge. Built from parts the way tests/meta-muse-oauth.test.ts already does.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe OAuth raw-value test now builds its Muse Code API key fixture from separate runtime segments. The expected parse result remains unchanged. ChangesOAuth test fixture
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The OAuth raw-value test now constructs its fabricated key at runtime, preserving its expected behavior while avoiding privacy-scan matches. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 78 / 80이 PR은 고치는 방법은 이미 같은 저장소 안에 있습니다. 지금 라인 63 - 주석과 조립식 키로 바뀌는 지점입니다. 예전 리터럴 꼬리는 25글자였고, 새 값은 라인 없음 / 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
#3437 added a Muse Code key fixture to
tests/oauth-manual-code.test.tsas a string literal.privacy:scandetects the real key grammar (LLM|<digits>|<tail>) and cannot tell a fabricated key from a live one, so it matched - which is the scanner working correctly, not a false positive.devhas been failing thegatesjob since that merge. This builds the fixture from parts, exactly the waytests/meta-muse-oauth.test.ts:22already does for the same reason.Verification
bun run privacy:scan- Privacy scan passed (red before this change).bun test tests/oauth-manual-code.test.ts- 18 pass, 0 fail. The assertion is unchanged; only how the fixture is constructed changed.Checklist
Security note: no real credential was ever committed. The literal was fabricated, but it matched the detector's grammar, and a detector that only fires on real keys would be useless - so the fixture moves rather than the rule.
Summary by CodeRabbit