Replies: 5 comments 1 reply
-
|
FYI @michaelcfanning @Amndeep7 @aaronlippold I believe you may like to be aware of this issue and perhaps even escalate it with your contacts? If GitHub can support |
Beta Was this translation helpful? Give feedback.
-
|
As a workaround, the results in the SARIF file with |
Beta Was this translation helpful? Give feedback.
-
|
Hello @candrews, |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I am having same issue. When I try to access result.Kind, in an artifact I am developing with c#, it is always returning fail even when the value is not fail in the SARIF file. Is there a way around this or an update I am missing, SARIF version is version": "2.1.0". Thank you |
Beta Was this translation helpful? Give feedback.
-
|
+1 on this. This is the reason for us paying for the security center. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
GitHub Code Scanning's SARIF importer does not implement SARIF's kind which results in many false alerts.
kindis how SARIF indicates if a result passed or not. Currently, GitHub treats all results as failed, creating alerts for all of them. That's very problematic for SARIF files that record all tests run (including those that passed), as in that case, false alerts are created for the results that passed.The values for
kindand what I think GitHub should do in each case are:passshould not record a Code Scanning alertopenshould behave the same asfail(record a Code Scanning alert)informationalshould not record a Code Scanning alertnotApplicableshould not record a Code Scanning alertreviewshould behave the same asfail(record a Code Scanning alert)fail(default iskindis no specified) should record a Code Scanning alertCan GitHub please add support for
kind?Here's an example of a SARIF file that uses
kind: openscap-report.sarif.txtIt currently imports into GitHub Code Scanning as 657 alerts; it should only result in 5 alerts.
Beta Was this translation helpful? Give feedback.
All reactions