scorecard icon indicating copy to clipboard operation
scorecard copied to clipboard

Calculate risk based on score of the check

Open varunsh-coder opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. In the future the Token-Permissions check will give different scores depending on how well the best practices has been followed. But even if one gets a score of 9, they will still get a High risk issue in the SARIF file. This score then gets shown in the Code scanning alerts dashboard when the Scorecards GitHub action is used in a repository.

Describe the solution you'd like The risk of the issue that is emitted in the SARIF file should be based on the score of the check. If the score is high, the risk should be lower.

Describe alternatives you've considered An alternative could be for each repository owner to have a policy file to set threshold of risk.

Additional context This is related to discussion at https://github.com/ossf/scorecard/issues/1128

varunsh-coder avatar Nov 20 '21 15:11 varunsh-coder