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

mindersec / minder / 33986659900
62%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2026 07:27PM UTC
Jobs 1
Files 357
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

05 Sep 2026 07:17PM UTC coverage: 61.914% (+0.07%) from 61.842%
33986659900

push

github

web-flow
Surface the HTTP status when REST remediation fails (#6747)

* Surface the HTTP status when REST remediation fails

When the provider's Do returns a non-2xx response without an error
(the generic REST and GitLab providers pass responses through as-is),
the status-code translation formatted the known-nil request error, so
the stored remediation detail read "remediation failed: %!s(<nil>)"
and the mapped status error was discarded. Include the status code and
the translated error in the failure message instead.

Add a regression test that drives run() through a provider whose Do
returns the response as-is; it reproduces the nil-format message
without this fix.

* Move status translation next to error handling

Review feedback: the non-2xx translation sat below the deferred body
close, away from the request error handling. Move the defer up with a
nil guard (which also closes the body when a provider returns both a
response and an error) and translate the status right after the error
block.

5 of 7 new or added lines in 1 file covered. (71.43%)

21662 of 34987 relevant lines covered (61.91%)

39.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
76.11
2.0% internal/engine/actions/remediate/rest/rest.go
Jobs
ID Job ID Ran Files Coverage
1 33986659900.1 05 Sep 2026 07:27PM UTC 357
61.91
GitHub Action Run
Source Files on build 33986659900
  • Tree
  • List 357
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33986659900
  • 1254d3be on github
  • Prev Build on main (#33905986826)
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