Skip to content

Use Docker Hub OIDC for test pulls - #549

Merged
sjmiller609 merged 10 commits into
mainfrom
hypeship/dockerhub-ssm-consumer
Nov 23, 2026
Merged

sjmiller609 merged 10 commits into
mainfrom
hypeship/dockerhub-ssm-consumer

Conversation

@sjmiller609

@sjmiller609 sjmiller609 commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Replace Docker Hub passwords in Linux and macOS CI with read-only OIDC. No anonymous fallback.
  • Run authenticated tests only on branches in this repository, using the exact commit selected by GitHub. For fork contributions, a maintainer can push the reviewed commit to an upstream branch to run the full suite.

Validation

  • Workflow lint and action lockfile checks passed locally. Full Linux/macOS suites run in GitHub Actions.

Note

Medium Risk
CI authentication and contributor test policy change; secrets and OIDC are involved, but scope is limited to GitHub Actions workflows.

Overview
Replaces Docker Hub password login in Linux and macOS test workflows with OIDC via docker/login-action@v4.7.0 (and updates the action lockfile). Jobs now request id-token: write, and the Linux job uses a run-scoped DOCKER_CONFIG instead of shared runner credentials.

Full CI no longer checks out arbitrary fork SHAs. test.yml tests the commit GitHub selects on the workflow ref, with guards so dispatched inputs must match github.repository and github.sha. The /test command workflow rejects fork heads with a maintainer-facing comment, drops the old fork-only go.mod/go.sum block, and dispatches test.yml on the PR branch ref rather than main.

Authenticated test secrets (ACME_*, CLOUDFLARE_*) are always used for eligible runs instead of being gated on upstream vs fork. PR status reporting runs only when the test job finishes with success or failure.

Reviewed by Cursor Bugbot for commit f3e1191. Bugbot is set up for automated code reviews on this repo. Configure here.

@sjmiller609
sjmiller609 marked this pull request as ready for review November 9, 2026 19:46

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

Comment thread .github/workflows/test.yml Resolved
@sjmiller609
sjmiller609 marked this pull request as draft November 9, 2026 19:59
@sjmiller609 sjmiller609 changed the title Read Docker Hub test credentials from SSM Use Docker Hub OIDC for test pulls Nov 11, 2026
@sjmiller609
sjmiller609 marked this pull request as ready for review November 23, 2026 20:26

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c47f3d2. Configure here.

Comment thread .github/workflows/test.yml Resolved

@yummybomb yummybomb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving, just one thing:

leftover references to removed env vars on macOS. test-darwin and e2e-install still pass repository: ${{ env.TEST_SOURCE_REPO }} and ref: ${{ env.TEST_SOURCE_REF }} to actions/checkout. The pr deleted those variables, so both are now empty strings. Checkout treats an empty value as "use the default" (this repo and the triggering commit), which is why CI is green. But the lines look like the jobs still check out a commit chosen by the dispatch inputs. Delete them so macOS matches the Linux job. Bugbot's summary flagged this too.

@sjmiller609
sjmiller609 merged commit cfbd7b5 into main Nov 23, 2026
11 checks passed
@sjmiller609
sjmiller609 deleted the hypeship/dockerhub-ssm-consumer branch November 23, 2026 21:15
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