Skip to main content

run_audit

Function run_audit 

Source
pub async fn run_audit(
    ctx: &dyn AuditContext,
    checks: &[Box<dyn Check>],
    opts: &AuditOptions,
    timestamp: String,
    secureops_version: &str,
) -> AuditReport
Expand description

Run every check against ctx, append the MAESTRO cross-layer compound-risk finding, then score and summarize — the faithful port of runAudit.

timestamp is injected (RFC3339) rather than read from a clock here so this stays pure and deterministic; callers stamp new Date().toISOString()’s equivalent. Findings are concatenated in checks order, matching the fixed category order of the TS Promise.all aggregation.