Each scan now records the components it added, updated (old → new version) or removed. The code SBOM, the CODESYS libraries and the firmware components are each compared before their part is replaced. The results go on the scan run (component_changes), capped at 5000. Recording is best effort: if it fails, the failure is logged and the scan goes on.
GET /api/v1/targets/{id}/scan-changes returns per scan components: one row per changed component, with the CVEs it brought and took away. A CVE that came or went while its component stayed the same is a "neue Advisory" / "Advisory entfällt" row.
The Verlauf drill-down shows the component table from the mockup above the CVE list. Scans from before this change keep their CVE list and get a note that their component changes were not recorded.
Docs: the Verlauf section of guide/repositories.md.
Test plan
cargo fmt --all --check, and clippy with the CI flags (core, agent, dashboard server and web)
core lib tests (the diff and the row matching)
dashboard tests
agent lib tests against MongoDB, including the new recorder test
tests/scan_changes.rs against MongoDB, with component rows added
local run with seeded data: the drill-down checked against the mockup
## Summary
Closes #974. Part of #955.
- Each scan now records the components it added, updated (old → new version) or removed. The code SBOM, the CODESYS libraries and the firmware components are each compared before their part is replaced. The results go on the scan run (`component_changes`), capped at 5000. Recording is best effort: if it fails, the failure is logged and the scan goes on.
- `GET /api/v1/targets/{id}/scan-changes` returns per scan `components`: one row per changed component, with the CVEs it brought and took away. A CVE that came or went while its component stayed the same is a "neue Advisory" / "Advisory entfällt" row.
- The Verlauf drill-down shows the component table from the mockup above the CVE list. Scans from before this change keep their CVE list and get a note that their component changes were not recorded.
- Docs: the Verlauf section of `guide/repositories.md`.
## Test plan
- [x] `cargo fmt --all --check`, and clippy with the CI flags (core, agent, dashboard server and web)
- [x] core lib tests (the diff and the row matching)
- [x] dashboard tests
- [x] agent lib tests against MongoDB, including the new recorder test
- [x] `tests/scan_changes.rs` against MongoDB, with component rows added
- [x] local run with seeded data: the drill-down checked against the mockup
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Before a stage replaces its part of a target's SBOM (the code SBOM, the
CODESYS libraries, the firmware components), the entries it replaces are
compared with the new ones and the changes are added to the scan run
(`component_changes`, at most 5000; `None` on runs from before). A
component is its package manager and name; one version before and one
after is an update, otherwise each new version an addition and each gone
one a removal.
The Verlauf API joins them with the scan's CVEs: a new CVE goes with the
component now at its version, a gone one with the component that was at
its version, and what no change explains is an advisory row. The scan's
drill-down shows the mockup's table (neu / aktualisiert / entfernt / neue
Advisory, version before → after, CVEs +n −m) above the CVE list; scans
from before say the components were not recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang
merged commit f5697ff21d into main2026-11-11 10:18:02 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Closes #974. Part of #955.
component_changes), capped at 5000. Recording is best effort: if it fails, the failure is logged and the scan goes on.GET /api/v1/targets/{id}/scan-changesreturns per scancomponents: one row per changed component, with the CVEs it brought and took away. A CVE that came or went while its component stayed the same is a "neue Advisory" / "Advisory entfällt" row.guide/repositories.md.Test plan
cargo fmt --all --check, and clippy with the CI flags (core, agent, dashboard server and web)tests/scan_changes.rsagainst MongoDB, with component rows added🤖 Generated with Claude Code