You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(review): Anthropic workload identity federation for Cora Review #448
The Cora Review job authenticates with a stored, long-lived CORA_API_KEY. A stored key can leak and never expires.
Proposal
Port codecoradev/cora-code#700: the job exchanges its GitHub OIDC token for a short-lived Anthropic access token (workload identity federation) when ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID and ANTHROPIC_WORKSPACE_ID are available as organization or repository secrets or variables.
With a federation token, API key, base URL and model switch together: the token is only sent to https://api.anthropic.com/v1, never to CORA_BASE_URL. Model: ANTHROPIC_MODEL, default claude-opus-5-5.
Without one (variables missing or the exchange fails, which is only a warning) the job uses the CORA_* secrets as before, and an empty secret fails the job instead of passing silently.
id-token: write on the job; a manual anthropic-wif-smoke.yml workflow to check the exchange.
Acceptance
The Cora Review job on this PR produces a real verdict (federated or via the fallback).
The OIDC token never leaves the exchange step; only the short-lived token is exported.
CONTRIBUTING documents the setup, including the numeric-id subject prefix gotcha.
Owner-side: the Anthropic federation rule must allow this repository's subject (repo:codecoradev@<id>/tole@<id>:pull_request); until then the fallback applies.
Activity
ci(review): run the WIF smoke test only from develop (#448)