-
Notifications
You must be signed in to change notification settings - Fork 49
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
SARIF 2.2 proposal: precision
field for reportingDescriptors and results
#611
Comments
The interesting question to me here is how this property s/be differentiated from the existing SARIF One possible answer is that Relative impact is a kind of numeric expression for the new severity value you've proposed. Are we heading towards a situation where we have property pairs? i.e., a numeric expressions from 0.0 to 100.0 coupled with a four-level, readable priority (note, warning, errror, critical). |
Also, what if we use two separate values: one for the engine confidence and another for the rules accuracy -- how do they map to the proposed precision value? |
Documenting here: +1 to a precision field of some sort.
|
Originally filed as #598, split into more focused component issues.
GitHub Advanced Security's code scanning feature recognises precision levels, currently read from the
properties
bag of a SARIFreportingDescriptor
object, and sorts alerts by them. GitHub CodeQL populates this property in its SARIF output, and the property is recognised for other code scanning tools.Docs: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#reportingdescriptor-object
Using the property bag was a pragmatic measure to provide this functionality without requiring a SARIF spec change. For SARIF 2.2 I propose we make
precision
an accepted property on areportingDescriptor
or aresult
, with the same accepted values that GitHub consumes today:very-high
,high
,medium
,low
, or omitted entirely. SARIF producer tools can use this property to indicate the tool's own confidence in the precision of the result, or for a rule, how often the results indicated by this rule are true.cc @michaelcfanning
The text was updated successfully, but these errors were encountered: