feat(issues): critical and high CVEs as issues in managed repositories
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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 7m55s

For a target from a managed git source, every critical or high CVE in
its components becomes one Gitea issue per package and CVE:
"[CVE] okhttp@3.12.0: CVE-2021-0341", labelled pruefwerk, cra:annex-i,
severity:<x> and the new `cve`, with the summary, severity, the fixed
version where the advisory names one, the CRA requirements (cra-ai-22,
cra-ai-33) and a link to the target. Stored per target, package and CVE,
so a second version of the package opens no second issue. A complete scan
that no longer finds the CVE closes the issue with a comment; it reopens
when the CVE comes back. A scan with a CVE gap closes nothing.

So severity and the fix are known at all: OSV's batch endpoint returns
only advisory ids, so every GHSA alert had no summary, severity or fix.
The CVE stage now reads each advisory once (8 at a time) for its summary,
GitHub severity, aliases (the CVE id of a GHSA) and the fixed versions of
the matched package (by purl). NVD is asked for a CVSS score only where
the advisory rates nothing, sparing its rate limit. CveAlert gains
`aliases` and `fixed_versions` and `cve()`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-05 19:40:58 +02:00
1 parent 8926255d6f
commit f514f34056
9 files changed
+768 -7

No files matched your search

+8 -1
View File
@@ -18,8 +18,15 @@ Repository-Organisation dieser Instanz automatisch prüfen:
- **Befunde als Issues.** Befunde ab Schweregrad „mittel“ erscheinen als Issue
im Repository, mit Fundstelle, CWE, der betroffenen CRA-Anforderung, der
Maßnahme und einem Link ins Prüfwerk. Prüfwerk legt dazu die Labels
`pruefwerk`, `cra:annex-i`, `severity:critical|high|medium|low` und
`pruefwerk`, `cra:annex-i`, `severity:critical|high|medium|low`, `cve` und
`risk:accepted` im Repository an.
- **Bekannte Schwachstellen als Issues.** Eine kritische oder hohe CVE in einer
Abhängigkeit wird ein Issue je Paket und CVE
(`[CVE] okhttp@3.12.0: CVE-2021-0341`), mit denselben Labels wie die Befunde
plus `cve` und der behebenden Version, wenn die Meldung eine nennt. Findet
eine vollständige Prüfung sie nicht mehr (Abhängigkeit aktualisiert oder
entfernt), wird das Issue mit Kommentar geschlossen; taucht sie wieder auf,
wird es wieder geöffnet.
- **Das Issue folgt dem Befund.** Wird der Befund im Prüfwerk geschlossen –
die Prüfung findet ihn nicht mehr, oder jemand setzt ihn auf behoben,
Fehlalarm oder ignoriert –, kommentiert Prüfwerk im Issue den Grund und