You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: scope CVE fixes to container chain and improve verification
- Parse container name and package from Jira ticket summary in Step 1
- Use container_to_repo_mapping in Step 3 to scope PRs to only the
repos that build the affected container, not all component repos.
Fallback to all repos when container cannot be parsed.
- Add package version check (Step 5.2.1) alongside existing scanner:
when scan doesn't find CVE, check dependency manifests directly
(requirements.txt, go.mod, package.json) before skipping. Only skip
when both scan AND version check find no evidence of the vulnerability.
If package not found in manifests, still create PR with manual review note.
- Add AI Evaluations full repo chain (ragas, garak, lm-evaluation-harness,
trustyai-service-operator, eval-hub) with container mappings
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- **Package found at a version** → compare against CVE affected version range
303
+
- If version is in affected range → proceed with fix
304
+
- If version is already patched → mark as already fixed (see below)
305
+
- **Package not found in any manifest** → it may be transitive or RPM-installed
306
+
- **Still proceed with fix attempt** — try to add/pin the package at a safe version
307
+
- Include note in PR: "⚠️ Package not found directly in manifests — may be a transitive or RPM-installed dependency. Manual review required to confirm fix is effective."
308
+
- **Both scan AND version check find nothing** → mark as already fixed:
309
+
- **DO NOT create a PR**
239
310
- **Print to stdout**: "✅ CVE-YYYY-XXXXX is already fixed in [repository] ([branch]). No action needed."
240
-
- **Document in artifacts**: Create a brief note in`artifacts/cve-fixer/fixes/already-fixed-CVE-YYYY-XXXXX.md` with:
241
-
- CVE ID
242
-
- Repository and branch checked
243
-
- Scan results showing CVE is not present
244
-
- Timestamp of verification
245
-
- Note that Jira ticket may need manual closure
246
-
- **Move to next CVE**: Skip all remaining steps for this CVE and proceed to the next one
247
-
- **Note**: The Jira ticket may still be open — this is an issue management task, not a code fix task
248
-
- Only proceed with remaining steps forCVEs that are confirmed as current vulnerabilitiesin the scan
311
+
- **Document in artifacts**: `artifacts/cve-fixer/fixes/already-fixed-CVE-YYYY-XXXXX.md`
312
+
- **Note**: Jira ticket may need manual closure
313
+
314
+
- Only skip the CVE entirely when BOTH the scan AND the direct package check find no evidence of the vulnerability
0 commit comments