Share downstream readiness checks across invocations
This commit is contained in:
@@ -235,7 +235,12 @@ func inspectSessionValidation(ctx context.Context, cfg *config.Config, deps comm
|
||||
}
|
||||
}
|
||||
}
|
||||
checked, checkErr := preflight.CheckDownstream(ctx, inspector, checker, targets, request)
|
||||
checked, checkErr := preflight.Check(ctx, inspector, targets.Scriptorium)
|
||||
if targets.Polish && ctx.Err() == nil {
|
||||
auditaResult, auditaErr := preflight.CheckAudita(ctx, checker, request)
|
||||
checked.Findings = append(checked.Findings, auditaResult.Findings...)
|
||||
checkErr = errors.Join(checkErr, auditaErr)
|
||||
}
|
||||
if targets.Notarius && ctx.Err() == nil {
|
||||
nativeResult, nativeErr := preflight.CheckNotarius(ctx, native, probe.Request)
|
||||
checked.Findings = append(checked.Findings, nativeResult.Findings...)
|
||||
|
||||
Reference in New Issue
Block a user