-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output SARIF format is confusing / broken #2608
Comments
@yuligesec thanks for reporting this. Could you also specify what tool you used to view/validate sarif format? |
From https://github.com/schniggie/vuln-mgmt/actions/runs/3383544249 (projectdiscovery/nuclei-action#43) Unable to upload "nuclei.sarif" as it is not valid SARIF:
- instance.runs[0].tool.driver.rules[0].help requires property "text"
- instance.runs[0].tool.driver.rules[1].help requires property "text"
- instance.runs[0].tool.driver.rules[2].help requires property "text"
- instance.runs[0].tool.driver.rules[3].help requires property "text"
- instance.runs[0].tool.driver.rules[4].help requires property "text"
- instance.runs[0].tool.driver.rules[5].help requires property "text"
- instance.runs[0].tool.driver.rules[6].help requires property "text"
- instance.runs[0].tool.driver.rules[7].help requires property "text"
- instance.runs[0].tool.driver.rules[8].help requires property "text"
- instance.runs[0].tool.driver.rules[9].help requires property "text"
- instance.runs[0].tool.driver.rules[10].help requires property "text" |
For example : vscode extension Sarif Viewer |
how can I assist here? really want this to work :) |
nuclei sarif is generated using https://github.com/owenrumney/go-sarif which seems to be the core problem . |
@schniggie , PR is in progress with lot of improvements . you can try it using https://github.com/projectdiscovery/nuclei/tree/issue-2608-fix-sarif branch |
@schniggie @yuligesec this is now fixed in the dev version with #2925, next release of nuclei is planned for Monday. |
Although nuclei supports exporting to sarif format, it does not conform to the rules of sarif format, and the output result should be placed in the
results
field. But not.It is confusing, like this.
Sarif Viewer can't view it and get any useful information!
The text was updated successfully, but these errors were encountered: