Skip to content

Validate command#58

Merged
xm1k3 merged 3 commits intomainfrom
validation
Oct 11, 2023
Merged

Validate command#58
xm1k3 merged 3 commits intomainfrom
validation

Conversation

@xm1k3
Copy link
Copy Markdown
Owner

@xm1k3 xm1k3 commented Oct 10, 2023

./cent validate --path cent-nuclei-templates

cent-nuclei-templates/CNT-Server-Stats-Disclosure.yaml Validation failed: requests is deprecated, use http instead at line 12
cent-nuclei-templates/CVE-2023-23333.yaml Validation failed: requests is deprecated, use http instead at line 9
cent-nuclei-templates/CVE-2023-27372.yaml Validation failed: is not allowed to have the additional property "raw" at line 10
cent-nuclei-templates/CVE-2023-32235.yaml Validation failed: requests is deprecated, use http instead at line 18
cent-nuclei-templates/CVE-2023-32315.yaml Validation failed: is not one of enum values: info,low,medium,high,critical,unknown at line 6
...

if the template is invalid it is deleted from the folder

Validation implemented as in Nuclei

https://github.com/projectdiscovery/nuclei/blob/28b2780fd189df1c5a3b74aac41f0b835a3b3e9b/v2/cmd/tmc/main.go#L325

@xm1k3 xm1k3 self-assigned this Oct 10, 2023
@xm1k3 xm1k3 added the enhancement New feature or request label Oct 10, 2023
@xm1k3 xm1k3 linked an issue Oct 10, 2023 that may be closed by this pull request
@xm1k3 xm1k3 added the hacktoberfest-accepted Hacktoberfest label label Oct 10, 2023
@xm1k3 xm1k3 merged commit ec44a6d into main Oct 11, 2023
@xm1k3 xm1k3 deleted the validation branch October 11, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hacktoberfest-accepted Hacktoberfest label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear old and corrupted repos

1 participant