Skip to content

ci: grant id-token write permission for AWS OIDC#8

Merged
cybercyst merged 1 commit into
mainfrom
ci/oidc-id-token-permission
Jun 15, 2026
Merged

ci: grant id-token write permission for AWS OIDC#8
cybercyst merged 1 commit into
mainfrom
ci/oidc-id-token-permission

Conversation

@cybercyst

Copy link
Copy Markdown
Member

Problem

The Build and Release workflow's Configure AWS Credentials step assumes an IAM role via OIDC (role-to-assume with no static access keys). That flow requires the id-token: write permission so the runner can mint a web-identity token, but the workflow only granted contents: read. The step would fail to authenticate to AWS.

This is the latent second failure observed in run 27558649432 — it would surface right after the Docker Hub login step is unblocked.

Change

Add id-token: write to the top-level permissions: block.

Note

This PR does not fix the current Login to Docker Hub failure (Password required). That is a provisioning issue — the org secret DOCKERBUILDBOT_READ_PAT is not shared with docker/envoy. Tracking that separately with infra (admin needs to grant repo access to the org secret).

🤖 Generated with Claude Code

The Build and Release workflow's Configure AWS Credentials step assumes a
role via OIDC (role-to-assume with no static keys), which requires the
id-token: write permission. The workflow only granted contents: read, so
the step would fail to obtain a web identity token.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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