Skip to content

ci(scout): scan for CVEs in one step, ask for base-image advice in another - #52

Merged
maksimtech merged 1 commit into
mainfrom
ci/scout-recommendations-advisory
Oct 28, 2026
Merged

maksimtech merged 1 commit into
mainfrom
ci/scout-recommendations-advisory

Conversation

@maksimtech

Copy link
Copy Markdown
Owner

Same change as maksimtech/mailradar#76, where it shipped in 2026.47 and Docker Scout went green again after the release.

From 2026-10-24 every run of docker-scout.yml failed, and GitHub mailed a failure for each push to main: the CVE scan worked and its SARIF was uploaded, then the scout CLI crashed in the recommendations part (panic: runtime error: invalid memory address or nil pointer dereference in internal/format/recommendations/markdown.go) on this image, built on python:3.12-slim-trixie.

  • docker-scout.yml: command: cves in its own step, writing the SARIF; if it fails, the job does. command: recommendations in a second step with continue-on-error: true and no SARIF.
  • CHANGELOG: an entry under [Unreleased] / Fixed.

TDD: tests/test_scout_steps.py (4 tests on the parsed workflows), red on two before the change. Full suite: 1302 passed. The action stays as pinned today; pinning every action to a commit is a separate change.

🤖 Generated with Claude Code

…other

From 2026-10-24 every run of docker-scout.yml failed, and GitHub mailed a
failure for each push to main: the CVE scan worked and was printed, then
the scout CLI crashed in the recommendations part (panic, nil pointer in
internal/format/recommendations/markdown.go) on images built on
python:3.12-slim-trixie.

The scan is now a step of its own (command: cves) that writes the SARIF
and fails the job if it fails. The recommendations are a second step with
continue-on-error: a crash in advice shows in the log and no longer turns
a working scan red. tests/test_scout_steps.py holds the two apart. Same
change as maksimtech/mailradar#76.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codspeed

codspeed Bot commented Oct 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 4 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing ci/scout-recommendations-advisory (c164041) with main (1d48d86)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

@maksimtech
maksimtech merged commit c3f5cb8 into main Oct 28, 2026
26 checks passed
@maksimtech
maksimtech deleted the ci/scout-recommendations-advisory branch October 28, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant