feat(cve): notifications for the PLC control-app SBOM (shared helper) [#166] #173

Merged
sharang merged 1 commits from feat/plc-cve-notifications into main 2026-07-16 16:30:20 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 4.8 762bf0024d feat(cve): notifications for the PLC control-app SBOM (dedup shared helper)
CI / Check (pull_request) Successful in 5m16s
CI / Detect Changes (pull_request) Has been skipped
CI / Deploy Agent (pull_request) Has been skipped
CI / Deploy Dashboard (pull_request) Has been skipped
CI / Deploy Docs (pull_request) Has been skipped
CI / Deploy MCP (pull_request) Has been skipped
The control-app SBOM CVE path (#166) stored alerts but created no notifications,
so CODESYS runtime/library CVEs never rang the dashboard bell.

Factor the alert-upsert + notification-creation out of run_pipeline into a shared
persist_cve_alerts(repo_id, repo_name, alerts) helper and call it from both the
SAST pipeline and persist_control_app_sbom. Now every SBOM source — source deps,
firmware, and CODESYS libraries/runtime — raises the same dedup'd CVE notifications.

Behavior for the existing SAST path is unchanged (same logic, extracted); the PLC
path additionally gains notifications. Completes the CVE loop for #166. Tracker #167.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 18:22:20 +02:00