Repository navigation
ci: authenticate claude-code-action via workload identity federation - #17173
Merged
Merged
Conversation
Replace the static ANTHROPIC_API_KEY secret with OIDC workload identity federation in every claude-code-action workflow, and grant id-token: write where it was missing. Jobs that pass github_token still use that token, so the extra permission does not mint a write-scoped Claude App token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VnDADM9FMiucizWL9yLeV
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Collaborator
Author
|
To unblock, either:
Generated by Claude Code |
…tion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VnDADM9FMiucizWL9yLeV
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.
Switches every
anthropics/claude-code-actionworkflow from the staticANTHROPIC_API_KEYsecret to OIDC workload identity federation.Changes
claude*.yml,cost-sync.yml,check-dependabot-uv-version.yml), theanthropic_api_keyinput is replaced withanthropic_federation_rule_id,anthropic_organization_id,anthropic_service_account_idandanthropic_workspace_id. The pinned v1.0.240 already supports these inputs.id-token: writeis added to the 10 jobs that didn't have it.claude.ymlandclaude-code-review.ymlalready had it.github_token: ${{ github.token }}still use that read-only token. The action'ssetupGitHubTokenreturns early when a token is provided, so the new OIDC permission doesn't mint a write-scoped Claude App token.Notes
plugin-evals,harbor-evals,pxi-online-evals,factory-*) still useANTHROPIC_API_KEYand are unchanged.pull_request,issue_comment,issues,scheduleandworkflow_dispatch.How this PR was made
Made by Claude Code at the user's request. Checks done: every workflow parses as YAML, and the action's source at the pinned SHA confirms the federation inputs and the early return for a provided token. I haven't run any workflow against the federation rule.
Generated by Claude Code