Open mohdrashid1 opened 2 months ago
To support the poster in creating valid SARIF from their JSON it would be helpful which validator was used that reported the error messages from the question.
Other than that:
The latest SARIF v2.1.0 specification at https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html
Lists as "Additional artifacts": The SARIF schema: https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json.
So, I would expect a SARIF instance file to refer to that URL: https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json
When taking the valid JSON part from your question (without the shell Rococo) the validation without requesting additional ingestion rules at https://sarifweb.azurewebsites.net/Validation does succeed.
When requesting "Azure DevOps ingestion rules" in that validator form (anchored at lines 5, 7, 30 twice):
When requesting "GitHub ingestion rules" at line 14:
Selecting "Additional suggestions" yields 7 (not shown here).
Below is my Output which i want to convert into Sarif format
im trying in github action
Vulnerablilites:
Here is i try
Got Error failed