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
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:
1 parent
8926255d6f
commit
f514f34056
9 files changed
+768
-7
No files matched your search
@@ -17,8 +17,14 @@ of an organisation in that instance automatically:
|
||||
- **Findings as issues.** Findings of severity medium and above become issues
|
||||
in the repository, with location, CWE, the CRA requirement concerned, the
|
||||
remediation and a link into Prüfwerk. Prüfwerk creates the labels
|
||||
`pruefwerk`, `cra:annex-i`, `severity:critical|high|medium|low` and
|
||||
`pruefwerk`, `cra:annex-i`, `severity:critical|high|medium|low`, `cve` and
|
||||
`risk:accepted` in the repository for them.
|
||||
- **Known vulnerabilities as issues.** A critical or high CVE in a dependency
|
||||
becomes one issue per package and CVE (`[CVE] okhttp@3.12.0: CVE-2021-0341`),
|
||||
labelled like the findings plus `cve`, with the fixed version where the
|
||||
advisory names one. When a complete scan no longer finds it (the dependency
|
||||
was updated or removed), the issue is closed with a comment; if it comes
|
||||
back, it is reopened.
|
||||
- **The issue follows the finding.** When the finding is closed in Prüfwerk —
|
||||
the scan no longer finds it, or someone marks it resolved, a false alarm or
|
||||
ignored — Prüfwerk comments on the issue why and closes it. An accepted risk
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user