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