mirror of https://github.com/daffainfo/nuclei.git
Tags field type change for workflow
parent
1037dace47
commit
c90d2eb4c8
|
@ -47,7 +47,7 @@ func parseWorkflowTemplate(workflow *workflows.WorkflowTemplate, options *protoc
|
||||||
var paths []string
|
var paths []string
|
||||||
|
|
||||||
if len(workflow.Tags) > 0 {
|
if len(workflow.Tags) > 0 {
|
||||||
paths = loader.ListTags(workflow.Tags)
|
paths = loader.ListTags([]string{workflow.Tags})
|
||||||
} else {
|
} else {
|
||||||
paths = loader.ListTemplates([]string{workflow.Template}, noValidate)
|
paths = loader.ListTemplates([]string{workflow.Template}, noValidate)
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ type WorkflowTemplate struct {
|
||||||
// Template is the template to run
|
// Template is the template to run
|
||||||
Template string `yaml:"template"`
|
Template string `yaml:"template"`
|
||||||
// Tags to perform filtering of supplied templates on
|
// Tags to perform filtering of supplied templates on
|
||||||
Tags []string `yaml:"tags"`
|
Tags string `yaml:"tags"`
|
||||||
// Matchers perform name based matching to run subtemplates for a workflow.
|
// Matchers perform name based matching to run subtemplates for a workflow.
|
||||||
Matchers []*Matcher `yaml:"matchers"`
|
Matchers []*Matcher `yaml:"matchers"`
|
||||||
// Subtemplates are ran if the template matches.
|
// Subtemplates are ran if the template matches.
|
||||||
|
|
Loading…
Reference in New Issue