Files
gstack/scripts/cso-sbom-packages-check.jq
Garry Tan 10315cf44d v1.91.27.0 fix(cso): runtime staging can finish and a qualified scanner catalog can ship (#3041)
* v1.91.27.0 fix(cso): package-level signed SBOMs and staged probes in the verifier container

* Qualified scanner catalogs persist scan outcomes; catalog-state tests hold for either state; SBOM tests live with their owner
2026-10-05 10:00:47 -07:00

8 lines
464 B
Plaintext

# Accept only a package-level SPDX 2.3 document whose relationships name known elements.
.spdxVersion == "SPDX-2.3"
and (.packages | type == "array" and length > 0)
and (has("files") | not)
and (([.SPDXID, .packages[].SPDXID] | map({key: ., value: true}) | from_entries) as $known
| all(.relationships[]; ($known[.spdxElementId] // false)
and (($known[.relatedSpdxElement] // false) or (.relatedSpdxElement | test("^(NONE|NOASSERTION)$|^DocumentRef-")))))