fix(ci): #528 — e2e assertions auth via ANTHROPIC_API_KEY#529
Conversation
…auth_org_not_allowed 403) The `production` env's CLAUDE_CODE_OAUTH_TOKEN was tied to an org Claude Code subscription that has been disabled, surfacing as oauth_org_not_allowed 403 on every flow before turn 1 and red-gating every PR. Switch the assertions job to the `ci-test` env's ANTHROPIC_API_KEY — `claude -p` honours the key natively, the same env already powers test-mcp-regression.yml + preflight-eval.yml, and CI is now decoupled from subscription policy. The recording job already uses ANTHROPIC_API_KEY for interactive `claude`; this aligns the assertions job with that contract. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe workflow's Stage 1 ChangesE2E Workflow Authentication Migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
v0-user-flow-e2e.ymlassertions job fromproductionenv (CLAUDE_CODE_OAUTH_TOKEN) toci-testenv (ANTHROPIC_API_KEY)oauth_org_not_allowed403 on every flow before turn 1ANTHROPIC_API_KEY) and withtest-mcp-regression.yml+preflight-eval.ymlCloses #528.
Why ANTHROPIC_API_KEY, not Copilot or re-enabling the subscription
claude -p(the harness's call surface) honoursANTHROPIC_API_KEYnatively — no other changes neededTest plan
ANTHROPIC_API_KEY: present (length=…)in the visibility probe and all 7 flows reach turn ≥ 1oauth_org_not_allowedlines in any flow's.ndjson🤖 Generated with Claude Code
Summary by CodeRabbit