fix: get templates before running scan

This commit is contained in:
Morten Olsen
2025-12-13 07:56:28 +01:00
parent 1677d02aa7
commit 4c14e2294a
2 changed files with 129 additions and 9 deletions

View File

@@ -118,8 +118,11 @@ func (r *Runner) Run(ctx context.Context) error {
logger.Info("Starting scan",
"targets", len(scan.Spec.Targets),
"targetList", scan.Spec.Targets,
"templates", scan.Spec.Templates,
"severity", scan.Spec.Severity)
"templatesCount", len(scan.Spec.Templates),
"severity", scan.Spec.Severity,
"severityCount", len(scan.Spec.Severity))
// Update status to indicate scan has started
startTime := metav1.Now()