You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
haskell-actions/hlint-scan is a GitHub action explicitly for uploading SARIF files to GitHub code scanning. However, Scorecard does not consider it as such and reports a "Token-Permissions" issue:
score is 8: jobLevel 'security-events' permission set to 'write'
Remediation tip: Verify which permissions are needed and consider whether you can reduce them.
However, Scorecard is not supposed to report the use of the security-events write permission if the action is recognized as a code scanning action:
However, points are not reduced if the job utilizes a recognized action for uploading SARIF results.
Reproduction steps
Steps to reproduce the behavior:
Set up a GitHub project.
Add Haskell code with some poor choices. E.g., main = concat . map id ([1,2,3]).
Scorecard recognizes haskell-actions/hlint-scan as an action uploading SARIF results. The use of the security-events write permission should not be reported as an issue.
Describe the bug
haskell-actions/hlint-scan is a GitHub action explicitly for uploading SARIF files to GitHub code scanning. However, Scorecard does not consider it as such and reports a "Token-Permissions" issue:
However, Scorecard is not supposed to report the use of the
security-events
write permission if the action is recognized as a code scanning action:Reproduction steps
Steps to reproduce the behavior:
main = concat . map id ([1,2,3])
.Expected behavior
Scorecard recognizes haskell-actions/hlint-scan as an action uploading SARIF results. The use of the
security-events
write permission should not be reported as an issue.Additional context
haskell-actions/hlint-scan uses HLint, which scans for issues in Haskell code and suggests improvements.
The text was updated successfully, but these errors were encountered: