Skip to content

ci: migrate claude.yml to Workload Identity Federation auth#1595

Open
zenexer-ant wants to merge 1 commit into
mainfrom
zenexer/wif-claude-action
Open

ci: migrate claude.yml to Workload Identity Federation auth#1595
zenexer-ant wants to merge 1 commit into
mainfrom
zenexer/wif-claude-action

Conversation

@zenexer-ant
Copy link
Copy Markdown

Replaces the static ANTHROPIC_API_KEY repo secret with Workload Identity Federation: claude-code-action exchanges this job's GitHub OIDC token for a short-lived access token instead of reading a long-lived key.

  • The federation rule is bound to this repository (repository_id-pinned), so the IDs below are repo-specific and not reusable elsewhere.
  • Pins claude-code-action to v1.0.132 — the WIF inputs (anthropic_federation_rule_id etc.) landed in v1.0.130.
  • permissions: id-token: write was already present.
  • No anthropic_workspace_id — the rule targets the org's default workspace, so the input is optional (per the action's docs/setup.md).

Once merged, the ANTHROPIC_API_KEY repo secret can be removed.

Replaces the static ANTHROPIC_API_KEY repo secret with Workload
Identity Federation: claude-code-action exchanges this job's GitHub
OIDC token for a short-lived access token. The federation rule is
bound to this repository (repository_id-pinned), so the IDs are
repo-specific and not reusable elsewhere.

Pins claude-code-action to v1.0.132 (the WIF inputs landed in
v1.0.130). id-token: write was already present.
@zenexer-ant zenexer-ant requested a review from a team as a code owner May 23, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant