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

stacklok / toolhive / 19550583742
59%

Build:
DEFAULT BRANCH: main
Ran 20 Nov 2025 08:38PM UTC
Jobs 1
Files 382
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

20 Nov 2025 08:35PM UTC coverage: 48.835% (+0.09%) from 48.742%
19550583742

push

github

web-flow
Add support for baking build-time arguments in container ENTRYPOINTs (#2631)

Add build-time arguments support with secure template refactoring

Add buildArgs parameter to container templates, allowing required subcommands 
to be baked into the ENTRYPOINT at build time. Runtime arguments passed via 
"--" are appended after build args.

Key improvements:
- Add MCPPackageClean field that strips version suffixes in Go code with tests
- Simplify NPX to direct JSON array ENTRYPOINT (no shell wrapper needed)
- Simplify UVX to use clean package variable instead of shell expansion  
- Add validation to reject single quotes in buildArgs (prevents shell injection)
- Update thv build command to accept --build-arg flag
- Add comprehensive test coverage for all transport types

Template complexity reduction:
- NPX: 9 lines of shell script → 2 lines of JSON array (78% reduction)
- Version stripping: centralized, testable, handles scoped packages correctly
- Prevents NPX from re-pulling packages when @latest is specified

Security: Single quotes in buildArgs are validated and rejected to prevent 
command injection in UVX template's sh -c execution. NPX and GO use JSON 
arrays without shell interpretation and remain unaffected.

---------

Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>

22 of 29 new or added lines in 3 files covered. (75.86%)

6 existing lines in 2 files now uncovered.

24614 of 50402 relevant lines covered (48.84%)

60.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
34.75
22.36% pkg/runner/protocol.go
6
16.98
-1.77% cmd/thv/app/build.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.55% pkg/transport/proxy/httpsse/http_proxy.go
4
50.9
-0.43% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 19550583742.1 20 Nov 2025 08:38PM UTC 382
48.84
GitHub Action Run
Source Files on build 19550583742
  • Tree
  • List 382
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19550583742
  • 955fcf13 on github
  • Prev Build on main (#19537982174)
  • Next Build on main (#19564411532)
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