fix(onboarding): targets visibility + unified pipeline by default (#154)
CI / Check (push) Has been skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Successful in 3m41s
CI / Deploy Dashboard (push) Successful in 2m46s
CI / Deploy Docs (push) Has been skipped
CI / Deploy MCP (push) Successful in 1m46s

This commit was merged in pull request #154.
This commit is contained in:
2026-07-13 07:29:04 +00:00
parent 669e1f1b03
commit bf32b9939a
11 changed files with 399 additions and 242 deletions
@@ -375,8 +375,11 @@ pub async fn trigger_target_scan(
let agent_clone = (*agent).clone();
let tenant_id = tenant.0.tenant_id.clone();
tokio::spawn(async move {
// Always the unified target pipeline — this endpoint is about an
// onboarded target by construction, independent of the global
// `unified_pipeline` transition flag used by the legacy paths.
if let Err(e) = agent_clone
.run_scan(
.run_target_scan(
&tenant_id,
&id,
compliance_core::models::ScanTrigger::Manual,