prisma-cloud-scan icon indicating copy to clipboard operation
prisma-cloud-scan copied to clipboard

Error: Failed formatting SARIF: Unknown severity: unassigned

Open mikocot opened this issue 10 months ago • 2 comments

Describe the bug

When scan result contains some vulnerabilities with severity level set to unassigned the action fails to parse the sarif file.

The action seems to already handle some of the levels i.e. `unknown', but not this one. Not sure if that's new but they started showing up for our images and caused passing scans to fail with:

Error: Failed formatting SARIF: Unknown severity: unassigned

Expected behavior

  • parse sarif files without error
  • consider unassigned level as 'none'

Current behavior

Error: Failed formatting SARIF: Unknown severity: unassigned action fails

Possible solution

add support for the unassigned level

Steps to reproduce

  1. scan any image that produces unassigned level vulnerabilities

Screenshots

image

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Operating System and version (desktop or mobile):
  • Link to your project:

mikocot avatar Apr 08 '24 16:04 mikocot

the solution is now ready in the PR #56 just waiting for the contributors to merge. It's also the version now tested and used in our CICD

mikocot avatar Apr 22 '24 16:04 mikocot

Hello, We have the same issue. Is there any timeframe for the Parks merge ? Thanks

giulianozor avatar May 13 '24 11:05 giulianozor