Files
image-tools/tests/fixtures/cve_gate/candidate.trivy.json
T
Christian Manivong 1a7319bac4
CI / Tests, lint (pull_request) Successful in 13s
feat(cve-gate): no image goes out with a new fixable critical or high CVE
The release gate of NetOrk/netork#1390. The verdict answers "does a rebuild
improve on the pin?"; a release needs the other question: does the candidate
bring a critical or high CVE that the last release of the same image does not
have and that has a fix? Both inventories go to netOrk's matcher in one call
(kb-server's POST /api/v1/match, one state of its data), and only new and
fixable blocks. A new one without a fix is listed: nobody can close it yet.

No verdict never passes, and an empty NETORK_LICENSE_KEY is said so before
Trivy runs. kb.netork.io's 401 and 403 come from the licence server's
forward-auth and now say what they mean: a licence key where a kb API key
belongs, an unknown key, or a plan without feature_match.
2026-11-08 00:56:11 +01:00

30 lines
1.0 KiB
JSON

{
"SchemaVersion": 2,
"ArtifactName": "registry.netork.io/netork/engine:main-abc1234",
"ArtifactType": "container_image",
"Metadata": {
"OS": {"Family": "debian", "Name": "13.1"},
"ImageID": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
},
"Results": [
{
"Target": "registry.netork.io/netork/engine:main-abc1234 (debian 13.1)",
"Class": "os-pkgs",
"Type": "debian",
"Packages": [
{"ID": "openssl@3.5.1-1", "Name": "openssl", "Version": "3.5.1-1", "SrcName": "openssl", "SrcVersion": "3.5.1-1"},
{"ID": "zlib1g@1:1.3.dfsg+really1.3.1-2", "Name": "zlib1g", "Version": "1:1.3.dfsg+really1.3.1-2", "SrcName": "zlib", "SrcVersion": "1:1.3.dfsg+really1.3.1-2"}
]
},
{
"Target": "Python",
"Class": "lang-pkgs",
"Type": "python-pkg",
"Packages": [
{"ID": "jinja2@3.1.5", "Name": "jinja2", "Version": "3.1.5"},
{"ID": "urllib3@2.4.0", "Name": "urllib3", "Version": "2.4.0"}
]
}
]
}