Commit 5365188
authored
Remove the Licenses tab the Compliance tab replaced (#37)
* fix(scan): match distro packages an SBOM never labelled with an OS
Trivy picks a distro advisory database from an operating-system component,
not from package PURLs, so a supplier SBOM listing every rpm on an image
reported zero vulnerabilities. Measured on Trivy 0.71.2: 0 findings without
the component, 306 with it; SPDX behaves the same (0 -> 166) and needs the
SPDXRef-OperatingSystem id prefix, not primaryPackagePurpose.
Infer the distro from the packages and scan an enriched copy — the upload
itself is never edited, since it backs the conformance verdict and the
signature bundle. A second defect surfaced alongside: os-pkgs results are
labelled with the distro, which no PURL reconstruction maps, so every distro
finding was dropped as "no purl". Fall back to the PURL Trivy attaches to the
finding, leaving reconstruction first so existing ecosystems are untouched.
Upstream's rewrite of an existing OS version down to its major release is
deliberately not ported: centos 7.9.2009, rocky 8.10, alma 9.3 and redhat 8.9
each matched identically with and without the minor.
* chore(web): remove the Licenses tab the Compliance tab replaced
LicensesTab / LicensesToolbar stopped being routed when ComplianceTab took
over (W9-#58), but the files and their unit test stayed, so the screen still
read as live. Remove them along with useLicenses, whose only caller they were.
licensesApi keeps listProjectLicenses: the list endpoint is staying as a REST
surface a CI job can call, and this file is where it is typed and tested. That
it now has no in-app caller is stated in the file. Comments that pointed at the
removed files were repointed at what they actually mirror.1 parent fe9b4cf commit 5365188
14 files changed
Lines changed: 22 additions & 1223 deletions
File tree
- apps/frontend
- src/features/projects
- api
- components
- tests/unit/features/projects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments