diff --git a/compliance-agent/src/pipeline/orchestrator.rs b/compliance-agent/src/pipeline/orchestrator.rs index 6c4e8ab..0addf3a 100644 --- a/compliance-agent/src/pipeline/orchestrator.rs +++ b/compliance-agent/src/pipeline/orchestrator.rs @@ -1925,6 +1925,19 @@ impl PipelineOrchestrator { .await?; } None => { + // A control application known only by the Siemens controllers + // it runs on (SPS item 4a): they are its SBOM, matched against + // Siemens' advisories as with a project. + if !target.devices.is_empty() { + let devices = + crate::pipeline::sbom::devices::entries(&target.devices, &target_id); + if let Err(e) = self + .persist_control_app_sbom(target, &target_id, scan_run_id, devices) + .await + { + tracing::warn!(target_id = %target_id, error = %e, "device SBOM persist failed"); + } + } // No code to scan. DAST is attempted for a target the matrix // plans it for, and for a migrated DAST target, which carries no // artifacts at all and relies on its DastTarget row. Anywhere