GitHub ActionsのOIDCトークンにおけるsubjectクレームの不変化
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHubは、新規リポジトリのOIDCトークンsubjectクレームに変更不可能な識別子を追加し、クラウド連携セキュリティを強化した。これによりリポジトリ名再利用時のなりすましリスクを解消する。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
新規リポジトリのデフォルトのサブジェクト(sub)クレームにおいて、GitHub Actions の OIDC トークン (OpenID Connect tokens) に不変の識別子 (immutable identifiers) が含まれるようになりました。この変更により、GitHub Actions のワークフローと AWS、Azure、GCP などのクラウドプロバイダー (cloud providers) 間における OIDC ベースの信頼関係 (OIDC-based trust) のセキュリティが強化されます。
従来、デフォルトのサブジェクトクレームには変更可能な名前 (mutable names) のみが使用されていました(例:repo:octocat/my-repo:ref:refs/heads/main)。リポジトリや組織名が再利用された場合、新しい所有者が同じサブジェクトクレームでトークンを発行 (minting tokens) でき、元のアイデンティティをまだ信頼しているクラウドリソースへの不正アクセスにつながる可能性があります。新しい形式では、クレームに不変の所有者 ID とリポジトリ ID が追加されます(例:repo:octocat-123456/my-repo-456789:ref:refs/heads/main)。これにより、各クレームが元のリポジトリに永久に紐付けられることが保証されます。
変更内容
2026年6月18日以降に作成されたすべてのリポジトリは、自動的に新しい不変のサブジェクトクレーム形式を使用します。
2026年6月18日以降のリポジトリ名の変更および移行 (transfer) でも、新しい形式が適用されます。
既存のリポジトリは、明示的にオプトイン (opt-in) しない限り影響を受けません。
既存リポジトリのオプトイン
既存のリポジトリに対して新しい形式を適用するには、リポジトリまたは組織の OIDC 設定 UI および API に用意された新しいトグル (toggle) を使用できます。また、新しいプレビューエンドポイント (preview endpoint) により、新しい形式でのサブジェクトクレームのプレフィックスが具体的にどのように表示されるかを確認できるため、クラウドプロバイダーの信頼ポリシー (trust policies) を確信を持って更新できます。
タイムライン
現在:組織またはリポジトリレベルでオプトイン可能です
2026年6月18日:GitHub は、すべての新規リポジトリおよび名前変更に対して新しい形式を自動的に適用 (enforce) します。
この変更は github.com のみに適用され、GitHub Enterprise Server (GHES) には影響しません。
詳しくは、OIDC のドキュメントをご覧ください。
「GitHub Actions の OIDC トークンに対する不変のサブジェクトクレーム」の記事は、The GitHub Blog で最初に公開されました。
原文を表示
GitHub Actions OIDC tokens now include immutable identifiers in the default sub (subject) claim for new repositories. This change strengthens the security of OIDC-based trust between your GitHub Actions workflows and cloud providers like AWS, Azure, and GCP.
Previously, the default subject claim used only mutable names (e.g., repo:octocat/my-repo:ref:refs/heads/main). If a repository or organization name was recycled, a new owner could mint tokens with the same subject claim, potentially gaining unauthorized access to cloud resources that still trusted the original identity. The new format appends immutable owner and repository IDs to the claim (e.g., repo:octocat-123456/my-repo-456789:ref:refs/heads/main), ensuring each claim is permanently tied to the original repository.
What’s changing
All repositories created after June 18, 2026 will automatically use the new immutable subject claim format.
Repository renames and transfers after June 18, 2026 will also adopt the new format.
Existing repositories won’t be affected unless you explicitly opt in.
Opt-in for existing repositories
You can adopt the new format for your existing repositories today using a new toggle in the repository or organization OIDC settings UI and API. A new preview endpoint also lets you see exactly what your subject claim prefix will look like under the new format, so you can update your cloud provider trust policies with confidence.
Timeline
Now: You can opt in at the organization or repository level
June 18, 2026: GitHub will automatically enforce the new format for all new repositories and renames.
This change only applies to github.com and does not impact GitHub Enterprise Server (GHES).
To learn more, see the OIDC documentation.
The post Immutable subject claims for GitHub Actions OIDC tokens appeared first on The GitHub Blog.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み