Skip to content

ci: keep the Docker Hub OIDC token valid until the image push - #8150

Merged
kylecarbs merged 1 commit into
mainfrom
ci/dockerhub-oidc-expiry
Nov 20, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
ci/dockerhub-oidc-expiry

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

The docker job of Publish code-server for v4.146.0 logged in to Docker Hub with OIDC at 19:08:18 and pushed at 19:17:59. The push failed with:

failed to fetch oauth token: ... auth.docker.io/token?scope=repository:codercom/code-server:pull,push ...: 401 Unauthorized: incorrect username or password

docker/login-action v4.7.0 requests a Docker Hub token that lasts DOCKERHUB_OIDC_EXPIREIN seconds, default 300 and maximum 21600. The multi-arch build pushes at the end, about 10 minutes in, so the token had expired. This asks for 3600, as coder/coder's dogfood.yaml already does.

Note: release only accepts v* tags, so publishing reruns the tag's copy of publish.yaml. A rerun for v4.146.0 would still use the 5-minute token. This takes effect from the next release.

🤖 Generated with Claude Code

The Docker Hub token from docker/login-action's OIDC exchange lasts 300
seconds by default. The multi-arch build takes about 10 minutes and
pushes at the end, so the v4.146.0 push failed with 401 incorrect
username or password. Ask for an hour, as coder/coder's dogfood.yaml does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylecarbs
kylecarbs requested a review from a team as a code owner November 20, 2026 19:47
@kylecarbs
kylecarbs merged commit 65677d9 into main Nov 20, 2026
10 checks passed
@kylecarbs
kylecarbs deleted the ci/dockerhub-oidc-expiry branch November 20, 2026 19:50
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