docs(auth + vertex): configure GitHub App token and required env vars for Claude on Vertex AI#11
Open
moesy wants to merge 10 commits into
Open
docs(auth + vertex): configure GitHub App token and required env vars for Claude on Vertex AI#11moesy wants to merge 10 commits into
moesy wants to merge 10 commits into
Conversation
- Moved `permissions` block to top-level context as required by GitHub Actions - Removed invalid `permissions` entries from individual steps
- Resolved "App token exchange failed: 401 Unauthorized" error
- Explicitly passed the GitHub App token from `create-github-app-token@v2` to `anthropics/claude-code-action@beta` using `github_token: ${{ steps.app-token.outputs.token }}`
- Ensures Claude action uses correct token instead of defaulting to GITHUB_TOKEN or OIDC
- Set CLOUD_ML_REGION and ANTHROPIC_VERTEX_PROJECT_ID. They are required environment variables when using vertex - Created GitHub secrets VERTEX_REGION and VERTEX_PROJECT_ID to support Vertex integration
- Documented the need for both VERTEX_REGION and model-specific region overrides such as VERTEX_REGION_CLAUDE_3_7_SONNET - Clarified that both are currently required to avoid region resolution errors - Linked to known issue describing this behavior (anthropics#12)
ashwin-ant
reviewed
May 28, 2025
ashwin-ant
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the PR! Left a question.
mvhatch
approved these changes
Jun 2, 2025
Author
|
Hi @mvhatch I fixed the merge conflict. Can you review again? |
mvhatch
approved these changes
Jun 6, 2025
D-o-d-o-x
referenced
this pull request
in D-o-d-o-x/claude-code-gitea-action
Jul 17, 2025
- Pin setup-node to commit SHA v4.4.0 - Pin setup-bun to commit SHA v2.0.2 - Pin claude-code to exact version 1.0.2 (remove ^) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
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.
Moved the permissions block to the top-level context as required by GitHub Actions
Removed unsupported permissions declarations from individual steps
Explicitly passed the GitHub App token (${{ steps.app-token.outputs.token }}) to anthropics/claude-code-action@beta to avoid fallback to GITHUB_TOKEN or OIDC
Resolved 401 Unauthorized errors during token exchange by ensuring proper authentication
Added required environment variables and corresponding secrets:
See Claude GitHub Action requires both
CLOUD_ML_REGIONand model-specific region variables for Vertex AI #12 for details on model-specific region requirements (no longer required)