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

stacklok / toolhive / 41671625562
73%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 04:21PM UTC
Jobs 1
Files 992
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

03 Nov 2026 04:11PM UTC coverage: 72.296% (-0.03%) from 72.326%
41671625562

push

github

web-flow
Require offline_access to open an exchange grant (#7038)

An exchange grant outlives the sign-in session, so opening one is
offline access. The authorization code flow already requires offline
or offline_access before it issues a refresh token (OIDC Core
section 11), but the exchange-grant path never checked the subject
token's scope, so a user who had not granted offline access could
still open a long-lived grant.

Opening a grant now requires the subject token's scope to contain one
of the server's refresh-token scopes. A token without one is refused
with invalid_request and the reason subject_token_offline_access. The
scopes come from one function, server.RefreshTokenScopes, which is set
on the fosite config so the token endpoint, this check and startup
validation use the same list. Startup also refuses
exchange_refresh_tokens when scopes_supported has neither scope,
because no grant could ever open.

Co-authored-by: Mecatl <noreply@mecatl.dev>

32 of 32 new or added lines in 3 files covered. (100.0%)

53 existing lines in 2 files now uncovered.

91821 of 127007 relevant lines covered (72.3%)

133.12 hits per line

Coverage Regressions

Lines Coverage ∆ File
50
59.31
-4.79% pkg/workloads/manager.go
3
0.0
-100.0% pkg/workloads/sysproc_unix.go
Jobs
ID Job ID Ran Files Coverage
1 41671625562.1 03 Nov 2026 04:21PM UTC 992
72.3
GitHub Action Run
Source Files on build 41671625562
  • Tree
  • List 992
  • Changed 8
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41671625562
  • ba8b2ebb on github
  • Prev Build on main (#41657639155)
  • Next Build on main (#41684712257)
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