Skip to content

ci: switch dockerhub login to OIDC - #6

Open
ingwarsw wants to merge 2 commits into
masterfrom
ingwar/docker-oidc-login
Open

ci: switch dockerhub login to OIDC#6
ingwarsw wants to merge 2 commits into
masterfrom
ingwar/docker-oidc-login

Conversation

@ingwarsw

@ingwarsw ingwarsw commented Aug 7, 2026

Copy link
Copy Markdown

Replaces DOCKER_HUB_USERNAME/DOCKER_HUB_PASSWORD secrets in the docker job with the docker/oidc-action + docker/login-action OIDC flow, matching the pattern rolled out across other repos (see kentik/ksynth#14, kentik/kagent#1004).

  • Added permissions: contents: read, id-token: write to the docker job.
  • Replaced docker/build-push-action@v1 username/password inputs (which used DOCKER_HUB_USERNAME/DOCKER_HUB_PASSWORD) with a separate docker/oidc-action + docker/login-action step using the kentik OIDC connection, and dropped the username/password inputs from build-push-action.

Copilot AI lite review requested due to automatic review settings August 7, 2026 14:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Actions Docker publishing flow to authenticate to Docker Hub via OIDC rather than long-lived DOCKER_HUB_USERNAME / DOCKER_HUB_PASSWORD secrets. This aligns the repo’s CI with the newer OIDC-based pattern used elsewhere.

Changes:

  • Adds job-level permissions (contents: read, id-token: write) to enable GitHub OIDC token minting for the Docker job.
  • Introduces docker/oidc-action to obtain a short-lived Docker Hub token and uses docker/login-action to log in with it.
  • Removes Docker Hub username/password inputs from docker/build-push-action@v1, relying on the prior login step instead.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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