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

stacklok / toolhive / 26190207318
66%

Build:
DEFAULT BRANCH: main
Ran 20 May 2026 09:16PM UTC
Jobs 1
Files 735
Run time 3min
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

20 May 2026 09:10PM UTC coverage: 65.495% (-0.003%) from 65.498%
26190207318

push

github

web-flow
Honor --allow-private-ip on thv registry login --registry (#5353)

Honor --allow-private-ip when registering registry via thv registry login

`thv config set-registry --allow-private-ip <url>` lets an operator point
the CLI at a registry behind a private/corp IP. The same option was
missing from `thv registry login`, and even via the Go API the boolean
was hardcoded to false one layer down — so an operator using
`thv registry login --registry http://10.x.y.z/...` to register and
authenticate in one step always hit the private-IP rejection regardless
of intent.

- LoginOptions: add AllowPrivateIP.
- ensureRegistryURL: thread it into DetectRegistryType and the
  SetRegistryAPI / SetRegistryURL calls (which were `false` literals).
- registry_login.go: add -p/--allow-private-ip mirroring the flag on
  set-registry.

No behavior change for callers that leave the new field at its
zero value.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

5 of 12 new or added lines in 2 files covered. (41.67%)

17 existing lines in 5 files now uncovered.

64799 of 98937 relevant lines covered (65.5%)

62.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
35.0
4.44% cmd/thv/app/registry_login.go
1
80.95
0.0% pkg/registry/auth/login.go

Coverage Regressions

Lines Coverage ∆ File
6
20.11
-3.45% pkg/client/manager.go
3
71.85
-1.11% pkg/ignore/processor.go
3
70.0
-3.33% pkg/state/local.go
3
78.17
-0.76% pkg/transport/proxy/httpsse/http_proxy.go
2
96.46
0.0% pkg/authserver/storage/memory.go
Jobs
ID Job ID Ran Files Coverage
1 26190207318.1 20 May 2026 09:16PM UTC 735
65.5
GitHub Action Run
Source Files on build 26190207318
  • Tree
  • List 735
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26190207318
  • bd73817e on github
  • Prev Build on main (#26190140034)
  • Next Build on main (#26227770935)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc