Skip to content

ci: use OIDC for Depot and Docker Hub in dogfood - #31882

Merged
sreya merged 3 commits into
mainfrom
ci/depot-oidc
Nov 12, 2026
Merged

sreya merged 3 commits into
mainfrom
ci/depot-oidc

Conversation

@sreya

@sreya sreya commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Replaces the static Depot and Docker Hub credentials in dogfood.yaml with OIDC.

  • Depot: both depot/build-push-action steps drop DEPOT_TOKEN and use the GitHub OIDC trust relationship on project b4q6ltmpzh.
  • Docker Hub: the main-only login uses the Docker Hub OIDC connection (vars.DOCKERHUB_OIDC_CONNECTIONID, org codercom) instead of DOCKERHUB_USERNAME/DOCKERHUB_PASSWORD. The connection allows repo:coder/coder:ref:refs/heads/main read/write on codercom/oss-dogfood and codercom/oss-dogfood-vscode-coder.
  • build_image gets id-token: write; fork PRs are already skipped.
  • The failure notification job moves into the main environment, since CI_FAILURE_SLACK_WEBHOOK now lives there (ci: run main-only secret consumers in the main environment #31763 missed this job).

Requires the repo variable DOCKERHUB_OIDC_CONNECTIONID before merge. After a successful dogfood run on main, DEPOT_TOKEN, DOCKERHUB_USERNAME, and DOCKERHUB_PASSWORD can be deleted.

@sreya for review.


Generated with Coder Agents.

@sreya sreya self-assigned this Nov 7, 2026
@sreya
sreya temporarily deployed to main November 7, 2026 01:12 — with GitHub Actions Inactive
@sreya
sreya temporarily deployed to main November 7, 2026 01:12 — with GitHub Actions Inactive
@sreya
sreya temporarily deployed to main November 12, 2026 03:48 — with GitHub Actions Inactive
@sreya
sreya temporarily deployed to main November 12, 2026 03:48 — with GitHub Actions Inactive
@sreya sreya changed the title ci: authenticate dogfood Depot builds with OIDC ci: use OIDC for Depot and Docker Hub in dogfood Nov 12, 2026
@sreya
sreya temporarily deployed to main November 12, 2026 04:04 — with GitHub Actions Inactive
@sreya
sreya temporarily deployed to main November 12, 2026 04:04 — with GitHub Actions Inactive
@sreya
sreya merged commit 6171bee into main Nov 12, 2026
35 checks passed
@sreya
sreya deleted the ci/depot-oidc branch November 12, 2026 18:14
@sreya
sreya temporarily deployed to main November 12, 2026 18:14 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026

This branch was previously deployed

1 inactive deployment
main — d7ea5ebb Deployed Nov 12, 2026 by sreya via cla #255146
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants