fix(sync): auth to GATEWAY - #1861
Merged
Merged
Conversation
The base-std docs sync started failing with a 403 Cloudflare "Attention Required" block page on the first gateway call (both the Haiku manifest pre-pass and the per-page Sonnet calls), while base/base's Claude Code Review workflow — same BaseRunnerGroup runners, same llm-gateway.coinbase-corp.com, same LLM_GATEWAY_API_KEY — kept working. The difference was the auth header. The SDK's `authToken` option sends `Authorization: Bearer <token>`, whereas base/base reaches the gateway via claude-code-action's `anthropic_api_key`, which sends the standard Anthropic `x-api-key` header. The gateway's Cloudflare edge treats x-api-key traffic as trusted and bot-challenges requests without it, producing the 403 before the request reaches the app (hence the instant failure, not a 401/JSON). Switch the client from `authToken` to `apiKey` so it sends `x-api-key`, matching the working workflow. Comment-only doc fixes to match. Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
✅ Heimdall Review Status
|
ericbrown99
approved these changes
Aug 27, 2026
Collaborator
|
Review Error for ericbrown99 @ 2026-08-27 14:40:28 UTC |
ericbrown99
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-- Swap auth method