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

romshark / datapages / 36180018610
44%

Build:
DEFAULT BRANCH: main
Ran 25 Sep 2026 07:30PM UTC
Jobs 11
Files 189
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

25 Sep 2026 07:22PM UTC coverage: 39.699% (+0.07%) from 39.63%
36180018610

push

github

romshark
fix: Escape SSE.Prefetch URLs

datastar-go writes prefetch URLs raw inside JSON in a script element.
An attacker-controlled quote and closing tag can escape both contexts
and run JavaScript in the page's origin (XSS).

The custom encoder avoids encoding/json's extra allocs on common path.
44 -> 20 allocs and 1,108 ns -> 377 ns per call for three URLs.

41 of 41 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

14170 of 35694 relevant lines covered (39.7%)

34.33 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
85.14
-0.31% runtime/httpserve/core.go
Jobs
ID Job ID Ran Files Coverage
1 todolist - 36180018610.1 25 Sep 2026 07:30PM UTC 11
0.0
GitHub Action Run
2 root - 36180018610.2 25 Sep 2026 07:41PM UTC 76
77.21
GitHub Action Run
3 offline-cache - 36180018610.3 25 Sep 2026 07:31PM UTC 19
0.0
GitHub Action Run
4 fast-shim - 36180018610.4 25 Sep 2026 07:31PM UTC 4
0.0
GitHub Action Run
5 tailwindcss - 36180018610.5 25 Sep 2026 07:31PM UTC 6
0.0
GitHub Action Run
6 calculator - 36180018610.6 25 Sep 2026 07:31PM UTC 10
17.21
GitHub Action Run
7 sqlitesessions - 36180018610.7 25 Sep 2026 07:31PM UTC 9
0.0
GitHub Action Run
8 webcomponents - 36180018610.8 25 Sep 2026 07:31PM UTC 6
0.0
GitHub Action Run
9 counter - 36180018610.9 25 Sep 2026 07:31PM UTC 12
0.0
GitHub Action Run
10 classifieds - 36180018610.10 25 Sep 2026 07:31PM UTC 18
0.0
GitHub Action Run
11 file-upload - 36180018610.11 25 Sep 2026 07:31PM UTC 18
45.92
GitHub Action Run
Source Files on build 36180018610
  • Tree
  • List 189
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36180018610
  • f52045aa on github
  • Prev Build on main (#36174189935)
  • Next Build on main (#36185697162)
  • Delete
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