Skip to content

Use the immutable sub claim for the run-ruby-wasm role - #75

Merged
hsbt merged 1 commit into
ruby:masterfrom
znz:fix-run-ruby-wasm-oidc-sub
Aug 21, 2026
Merged

Use the immutable sub claim for the run-ruby-wasm role#75
hsbt merged 1 commit into
ruby:masterfrom
znz:fix-run-ruby-wasm-oidc-sub

Conversation

@znz

@znz znz commented Aug 20, 2026

Copy link
Copy Markdown
Member

Fix the trust policy of the docs-sync-run-ruby-wasm role: the sync workflow in rurema/run-ruby-wasm fails to assume it with Not authorized to perform sts:AssumeRoleWithWebIdentity (failed run).

rurema/run-ruby-wasm was created on 2026-08-16, after GitHub's 2026-07-15 cutoff, so its OIDC tokens carry the immutable subject claimrepo:OWNER@OWNER-ID/REPO@REPO-ID:ref:... — and this cannot be turned off in the repository settings. The classic repo:rurema/run-ruby-wasm:ref:... condition therefore never matches.

This switches the two sub entries (main branch and release tags) to the immutable form. The ids (rurema = 4122513, run-ruby-wasm = 1335558093) are taken from the repository's OIDC configuration page and cross-checked against the API. The other three repositories predate the cutoff and keep the classic form; a comment now warns about the cutoff for future additions.

Please apply when convenient — applying together with #74 would make it a single round. After the apply we will re-run the sync with the existing release tag to verify.


(日本語) run-ruby-wasm は 2026-07-15 カットオフ後の作成のため immutable subject claims が強制され、従来形式の trust に一致せず AssumeRole が拒否されていました。sub 2 エントリを immutable 形式へ差し替えます。#74 とまとめて apply いただけると 1 回で済みます。

🤖 Generated with Claude Code

rurema/run-ruby-wasm was created on 2026-08-16, after GitHub's
2026-07-15 cutoff, so its OIDC tokens carry the immutable subject
claim ("repo:OWNER@OWNER-ID/REPO@REPO-ID:ref:...") and the classic
"repo:rurema/run-ruby-wasm:ref:..." trust condition never matches:
the sync workflow fails with "Not authorized to perform
sts:AssumeRoleWithWebIdentity".

Switch the two sub entries to the immutable form (ids from the
repository's OIDC configuration page, cross-checked against the API).
The other three repositories predate the cutoff and keep the classic
form.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@znz
znz requested a review from hsbt August 20, 2026 14:36
@hsbt
hsbt merged commit 2558536 into ruby:master Aug 21, 2026
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.

2 participants