From 37d9a00a61ba1484fb9295fc30771232d4afefaf Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Mon, 16 Nov 2026 12:27:45 +0100 Subject: [PATCH] Show EPSS in the review inbox --- src/nixray/adapters/web/templates/review.html | 3 ++- tests/unit/test_web.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/nixray/adapters/web/templates/review.html b/src/nixray/adapters/web/templates/review.html index ba54eec..c3c3c50 100644 --- a/src/nixray/adapters/web/templates/review.html +++ b/src/nixray/adapters/web/templates/review.html @@ -68,7 +68,7 @@
- {% if hosts|length > 1 %}{% endif %} + {% if hosts|length > 1 %}{% endif %} {% for item in items %} @@ -79,6 +79,7 @@ + {# The CVE page shows one host: open it on a host that has the finding. #} diff --git a/tests/unit/test_web.py b/tests/unit/test_web.py index 7ef7693..bbf719e 100644 --- a/tests/unit/test_web.py +++ b/tests/unit/test_web.py @@ -907,3 +907,9 @@ def test_findings_sort_and_filter_by_epss(client, store): assert "epss=0.1&" in page # kept by the sort links assert client.get("/findings?epss=bogus").status_code == 200 assert "EPSS 2.0 %" in client.get("/cves/CVE-2024-13278").text + + +def test_review_inbox_shows_epss(client, store): + store.state.epss[CveId("CVE-2025-0002")] = 0.6 + page = client.get("/review").text + assert ">EPSS" in page and "60 %" in page -- knotmirror 0.0.1
SelectSeverityCVEPackageHostsDescriptionDetectedExposedSeverityEPSSCVEPackageHostsDescriptionDetectedExposed
{{ m.severity_badge(f.cve) }}{{ f.cve.epss|percent }}{{ m.cve_link(f.cve, none if host in item.hosts else item.hosts[0]) }} {{ f.package.pname }} {{ f.package.version }}
{{ m.scope_tag(f) }}