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

stacklok / toolhive / 32170469510
70%

Build:
DEFAULT BRANCH: main
Ran 18 Aug 2026 06:27PM UTC
Jobs 1
Files 876
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

18 Aug 2026 06:20PM UTC coverage: 70.425% (+0.006%) from 70.419%
32170469510

push

github

web-flow
Strip leading UTF-8 BOM before filtering list responses (#6304)

* Strip leading UTF-8 BOM before filtering list responses

A client strips a leading BOM per the WHATWG UTF-8 decode algorithm before parsing, but the response filter decoded and sniffed the raw bytes. Go's encoding/json treats EF BB BF as a syntax error, so a BOM-prefixed list response failed every decode and smuggled-result sniff and passed through unfiltered, leaking policy-denied tools/prompts/resources. The SSE processing path already stripped the BOM; the JSON decode path, the JSON/SSE sniffs in FlushAndFilter, and the tool filter's unrecognized-media-type sniff did not.

Strip the BOM once in FlushAndFilter before the media-type dispatch (covering the JSON path and both default-branch sniffs) and once at the top of processUnrecognizedMimeType in the tool filter. Add regression tests mirroring the existing SSE BOM test.

* Fix BOM response fallback length

13 of 13 new or added lines in 2 files covered. (100.0%)

13 existing lines in 5 files now uncovered.

85468 of 121361 relevant lines covered (70.42%)

98.82 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
96.57
-0.45% pkg/authz/authorizers/cedar/core.go
3
80.56
-0.7% pkg/transport/proxy/httpsse/http_proxy.go
3
61.99
0.09% pkg/workloads/manager.go
2
94.27
-1.27% pkg/authserver/storage/cimd_decorator.go
2
94.77
-1.31% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 32170469510.1 18 Aug 2026 06:27PM UTC 876
70.42
GitHub Action Run
Source Files on build 32170469510
  • Tree
  • List 876
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32170469510
  • 39d0d14c on github
  • Prev Build on main (#32170314991)
  • Next Build on main (#32176488063)
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