Add Workflows SDK scan (#5409)

* Add Workflows SDK scan

* minor

---------

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
This commit is contained in:
alban-stourbe-wmx 2024-08-03 19:43:31 +02:00 committed by GitHub
parent ff23949bb0
commit 0787ff29e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,12 @@ func (e *NucleiEngine) ExecuteCallbackWithCtx(ctx context.Context, callback ...f
} }
e.resultCallbacks = append(e.resultCallbacks, filtered...) e.resultCallbacks = append(e.resultCallbacks, filtered...)
_ = e.engine.ExecuteScanWithOpts(ctx, e.store.Templates(), e.inputProvider, false) templatesAndWorkflows := append(e.store.Templates(), e.store.Workflows()...)
if len(templatesAndWorkflows) == 0 {
return ErrNoTemplatesAvailable
}
_ = e.engine.ExecuteScanWithOpts(ctx, templatesAndWorkflows, e.inputProvider, false)
defer e.engine.WorkPool().Wait() defer e.engine.WorkPool().Wait()
return nil return nil
} }