chore(ci): authenticate container registries via OIDC - #7342
Draft
sds wants to merge 5 commits into
Draft
Conversation
Use separate read-only and read/write Docker Hub connections for private-fork pulls and upstream image publishing, removing the workflow dependency on a long-lived Docker Hub token.
sds
force-pushed
the
chore/dockerhub-oidc
branch
from
August 27, 2026 22:53
b83274e to
e6d8f9e
Compare
Use the read/write OIDC connection in both repositories because the shared workflow publishes Docker Hub images from each.
Use the OIDC-capable action version consistently and rely on the login action itself to report missing connection configuration.
Mint short-lived package-write tokens for container publishing and remove package access from the built-in workflow token.
sds
marked this pull request as draft
August 28, 2026 01:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces Docker Hub credentials with Docker Hub OIDC, replaces GHCR
GITHUB_TOKENlogins with package-write tokens minted through GitHub STS, adds the dedicatedghcr-publishSTS policy, removes built-inpackages: writegrants, preserves publishing from both repositories, and updates everydocker/login-actionuse to v4.6.0.In Docker Hub, add four rulesets to the existing read/write connection with subjects
repo:tempoxyz@211589300/tempo@994992847:ref:refs/heads/*,repo:tempoxyz@211589300/tempo@994992847:ref:refs/tags/v*.*.*,repo:tempoxyz@211589300/tempo-private-fork@1160043351:ref:refs/heads/*, andrepo:tempoxyz@211589300/tempo-private-fork@1160043351:ref:refs/tags/v*.*.*, granting read/write only totempoxyz/tempo,tempoxyz/tempo-localnet,tempoxyz/tempo-sidecar, andtempoxyz/tempo-xtask.The Docker Hub connection ID is already stored as
DOCKERHUB_OIDC_CONNECTIONID_WRITEin both GitHub repositories; these workflows have no pull-only Docker Hub context, so the READ connection is not used here, andDOCKER_HUB_TOKENplusDOCKER_HUB_USERcan be deleted from both repositories after OIDC-backed runs succeed.