• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mindersec / minder / 42773127391
67%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 07:17AM UTC
Jobs 1
Files 361
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 07:07AM UTC coverage: 67.129% (+0.001%) from 67.128%
42773127391

push

github

web-flow
fix(dockerhub): use Basic auth for registry token (#7083)

* fix(dockerhub): use Basic auth for registry token

The Sigstore verifier path sent the raw personal access token directly
as a Bearer token to Docker Hub's registry, which expects Basic auth
(namespace as username, token as password) exchanged for a short-lived
JWT. go-containerregistry's authn.Basic already performs this exchange
automatically -- no manual token-exchange code or proto change needed.

Uses the existing namespace field as the username, per Docker's
documented flow (personal tokens use the Docker ID; org tokens use the
org name as username). This is only correct when the token's type
matches the namespace being watched -- a personal token used against a
namespace other than its owner's Docker ID may still fail (how Docker
Hub handles a mismatched username was not confirmed against the live
registry). Tracking that as a known limitation rather than fixing it
here, since fixing it would need a new optional username field on
DockerHubProviderConfig that falls back to the namespace, which is a
separate design question.

Added a fake token-exchange registry (mimicking Docker's documented
flow) to test this without live credentials: confirms the new Basic
auth succeeds, confirms the old raw-Bearer approach is rejected
(reproducing the bug), and covers a wrong-username rejection and the
nil-credential anonymous fallback.

Fixes #7080

* Add optional Username field to DockerHubProviderConfig

Falls back to namespace when unset, so existing single-user configs
keep working unchanged. Needed for organization/team namespaces
(e.g. 'library') where the namespace itself isn't a valid login name.

Addresses Evan's review on #7083.

11 of 13 new or added lines in 1 file covered. (84.62%)

2 existing lines in 1 file now uncovered.

23983 of 35727 relevant lines covered (67.13%)

59.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.48
-0.97% internal/providers/dockerhub/dockerhub.go

Coverage Regressions

Lines Coverage ∆ File
2
78.97
-1.03% internal/eea/eea.go
Jobs
ID Job ID Ran Files Coverage
1 42773127391.1 10 Nov 2026 07:17AM UTC 361
67.13
GitHub Action Run
Source Files on build 42773127391
  • Tree
  • List 361
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42773127391
  • 00a44734 on github
  • Prev Build on main (#42772740903)
  • Next Build on main (#42773501600)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc