fix(vex): the startup purl backfill always logs its count (#540)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 7m15s

This commit was merged in pull request #540.
This commit is contained in:
sharang committed 2026-10-09 13:00:15 +00:00
1 parent 2c5b2eb003
commit 2ca73acabf
1 file changed
+2 -2
+2 -2
View File
@@ -45,9 +45,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Err(e) => tracing::error!("migrating stored findings failed: {e}"),
}
// Open CVE alerts stored before purls were recorded (#532) get their
// component's purl, before a scan can resolve them.
// component's purl, before a scan can resolve them. Logged with 0 too, so
// "ran, nothing to do" is told apart from "did not run".
match pipeline::vex_lifecycle::backfill_purls_everywhere(&agent.db_pool).await {
Ok(0) => {}
Ok(alerts) => tracing::info!(alerts, "CVE alerts got their component's purl"),
Err(e) => tracing::error!("backfilling CVE alert purls failed: {e}"),
}