-
Notifications
You must be signed in to change notification settings - Fork 339
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
upload-sarif@v3
: could not convert rules: invalid security severity value, is not a number: undefined
#2187
Comments
Hi @NiccoloFei 👋 I'll check with the team to see if we have made any changes to the SARIF upload recently that could be responsible for this, but have you verified that the file generated by Snyk is actually a valid SARIF file? If so, could you make the SARIF file available? |
Attaching the SARIF content below: Sarif content:
|
I'm pretty sure it's because your sarif has |
@aeisenberg your assessment seems accurate to me. I tried to downgrade upload-sarif to v2 and the issue persists. |
I'd recommend post-processing the SARIF that snyk produces to remove the |
The Sarif upload action is currently failing because of github/codeql-action#2187, which turned out being related to how snyk produces the sarif. While the issue is being investigated with snyk, let's deploy a temporary workaround to allow the push of new images.
The Sarif upload action is currently failing because of github/codeql-action#2187, which turned out being related to how snyk produces the sarif. While the issue is being investigated with snyk, let's deploy a temporary workaround to allow the push of new images.
Is there any issue opened within the Snyk? I'm getting the same exact error, except of |
There are no issues that I am aware of. I'd recommend that you raise one. This appears to be a recent change seeing as how there are multiple reports in this issue. |
Where can I create an issue? It seems like issues are disabled in the https://github.com/snyk/actions repository. |
Thank you, submitted a ticket there! |
Are there any updates regarding the submitted ticket? |
They've replied only today with a request to provide the full SARIF file (well, they could've downloaded it from just any run). |
This behavior is expected - licenses and vulnerabilities were originally designed with a common structure but license-related findings are now managed differently. That is, license-related findings do not indicate a security vulnerability and are labeled as 'undefined'. You can use use the --sarif-file-output=snyk.sarif arg and add the following lines to fix it:
|
This PR fixes the issue with Snyk sarif file. See github/codeql-action#2187 for more details. Signed-off-by: Pradeep Kumar Prakasam <[email protected]>
I had to add the following line to fix the issue:
|
Null value is not supported. Issue reported at github/codeql-action#2187
Hi, recently I'm seeing the following error when running the
upload-sarif@v3
GH action.Example failure: https://github.com/cloudnative-pg/postgres-containers/actions/runs/8196632252/job/22417260216
I'm not sure what could cause that. The upload was working just fine and started failing the last few days.
Any help is appreciated, thanks in advance!
The text was updated successfully, but these errors were encountered: