feat(scan): record which components each scan added, updated or removed (#974)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m41s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 20m32s

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>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-10 23:25:00 +01:00
1 parent 31886d226c
commit bb85e6996e
11 files changed
+784 -22

No files matched your search

+10 -3
View File
@@ -229,7 +229,7 @@ opens the same view.
| **Komponenten** (Components) | The updates that remove the most CVEs, and the components per ecosystem | The update's CVEs, or the **Stückliste** filtered to the ecosystem |
| **Lizenzen** (Licences) | The components per licence group | The licences of that group and the components using each |
| **CRA Annex I** | The 40 requirements as tiles, coloured by state and marked: **!** findings assigned, **?** not checked, **~** partly checked, **OK** checked without findings, **–** not checkable in code | The requirement with its state, the findings against it and the reason |
| **Verlauf** (History) | Per scan, the CVEs it found new above the line and those it found gone below it, and the scan's status | What the scan changed: each CVE new or gone, with component, version and severity |
| **Verlauf** (History) | Per scan, the CVEs it found new above the line and those it found gone below it, and the scan's status | What the scan changed: the components it added, updated or removed with the CVEs each brought and took, and each CVE new or gone with component, version and severity |
The figure beside **CRA Annex I** counts the requirements checked without a
finding, of all 40.
@@ -240,8 +240,15 @@ gone in the window a complete scan no longer found it. The target's first
complete scan is marked **Start**; what it found is the starting point, not a
change. A scan that did not complete changes nothing, so CVEs found in the
meantime (by the daily CVE check, say) count for the next complete scan.
Prüfwerk does not store yet which components each scan added, updated or
removed.
A scan's components are compared with the SBOM stored before it: one version
of a component before and another after is **aktualisiert** (updated), a new
component or version **neu**, one no longer there **entfernt** (removed). A
new CVE goes with the component now at its version, a gone one with the
component that was at its version. A CVE that came or went while its
component stayed the same reads **neue Advisory** or **Advisory entfällt**.
At most 5000 component changes are kept per scan. Scans from before
Prüfwerk recorded this show their CVEs only and say so.
## Editing a Target