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

stacklok / toolhive / 30358722331
70%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 12:31PM UTC
Jobs 1
Files 853
Run time 2min
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

28 Jul 2026 12:23PM UTC coverage: 69.823% (-0.06%) from 69.881%
30358722331

push

github

web-flow
Fix review findings in the act claim audit capture (#6096)

* Honor maxDelegationDepth above the auth default

The audit config knob was silently ineffective for any value above 10.
claimsToIdentity parses the RFC 8693 "act" claim at the hardcoded
DefaultMaxDelegationDepth, and rebindDelegationChain can only shrink an
already-parsed actor slice, so it could never recover actors the identity
layer dropped. An operator setting maxDelegationDepth to 25 still got 10
actors and no warning, even though the full chain was still present in
the raw claim.

Re-parse the raw "act" claim at the configured depth when the
identity-layer chain was truncated and audit asks for more actors than it
kept. The re-parse is trusted only when it yields at least as many actors
as are already parsed, so it can widen the chain but never narrow it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Drop the test-only log-writer hook from Auditor

SetLogWriterForTest added exported, immediately-deprecated test surface to
a production type, and both call sites needed //nolint:staticcheck to mute
the deprecation the same change introduced. It also wrote auditLogger with
no synchronization on a type whose Middleware reads it from concurrent
request goroutines, and never closed the writer it replaced.

None of it was necessary: NewAuditorWithTransport already selects its
writer from Config.LogFile, so the integration tests can point it at a
t.TempDir() file and read the events back. That also converges these tests
on the capture pattern the vMCP authz integration tests already use.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Assert delegation capture across all Log* methods

attachDelegation is hand-repeated in all eight WorkflowAuditor Log*
methods, but only LogWorkflowStarted and LogStepStarted were covered, so
dropping the call from any of the other six -- including every terminal
failed/timed-out event, which is what an investigator reads -- would ship
silen... (continued)

45 of 0 new or added lines in 0 files covered. (NaN%)

83 existing lines in 6 files now uncovered.

81620 of 116896 relevant lines covered (69.82%)

98.21 hits per line

Coverage Regressions

Lines Coverage ∆ File
64
61.65
-5.33% pkg/workloads/manager.go
6
20.11
-3.45% pkg/client/manager.go
5
0.0
-100.0% pkg/workloads/sysproc_unix.go
3
96.63
-0.44% pkg/authz/authorizers/cedar/core.go
3
73.79
-2.91% pkg/state/local.go
2
82.06
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 30358722331.1 28 Jul 2026 12:31PM UTC 853
69.82
GitHub Action Run
Source Files on build 30358722331
  • Tree
  • List 853
  • Changed 16
  • Source Changed 7
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30358722331
  • cd373ecb on github
  • Prev Build on main (#30358573127)
  • Next Build on main (#30364479952)
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