Skip to content

ci: migrate Hub login from PAT to OIDC - #545

Merged
cutecatfann merged 1 commit into
mainfrom
task/oidc-hub-migration
Aug 6, 2026
Merged

ci: migrate Hub login from PAT to OIDC#545
cutecatfann merged 1 commit into
mainfrom
task/oidc-hub-migration

Conversation

@cutecatfann

@cutecatfann cutecatfann commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Docker Hub is blocking image pushes using long-lived PATs to Docker-owned namespaces starting August 7, 2026. This migrates main.yml to OIDC authentication.

Changes

  • Add id-token: write to workflow-level permissions (required for GitHub OIDC token issuance)
  • Upgrade docker/login-action v3.7.0 → v4.6.0 (dbcb813)
  • Replace DOCKERPUBLICBOT_WRITE_PAT with DOCKERHUB_OIDC_CONNECTIONID env var
  • Remove DOCKERPUBLICBOT_USERNAME var; hardcode username: docker

Docker Hub is blocking image pushes using long-lived PATs to Docker-owned
namespaces starting August 7, 2026. Migrate main.yml to use OIDC via
login-action v4.6.0.

- Add id-token: write to workflow permissions
- Upgrade docker/login-action from v3.7.0 to v4.6.0
- Replace DOCKERPUBLICBOT_WRITE_PAT with DOCKERHUB_OIDC_CONNECTIONID from
  secret OIDC_CONNECTION_ID

Merge gate: requires OIDC_CONNECTION_ID secret to be added to repo secrets
before merging. Request connection ID from Hub/IAM team for docker/mcp-gateway
scoped to the docker Hub org.

Supersedes: #543

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cutecatfann
cutecatfann merged commit b5ff11f into main Aug 6, 2026
8 checks passed
@cutecatfann
cutecatfann deleted the task/oidc-hub-migration branch August 6, 2026 15:21
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