Skip to content
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

fix(sarif): handle empty artifactLocation.uri fields #8141

Open
nikpivkin opened this issue Dec 20, 2024 · 0 comments
Open

fix(sarif): handle empty artifactLocation.uri fields #8141

nikpivkin opened this issue Dec 20, 2024 · 0 comments

Comments

@nikpivkin
Copy link
Contributor

Related Issues:

In some cases, Trivy generates a SARIF report with an empty artifactLocation.uri. Although such reports successfully pass validation at https://sarifweb.azurewebsites.net/Validation, which is recommended by GitHub in their documentation, uploading them using the github/codeql-action/upload-sarif action fails with the following error:

Error: Code Scanning could not process the submitted SARIF file:
locationFromSarifResult: expected artifact location, locationFromSarifResult: expected artifact location

This remains an unresolved issue:

Potential solutions:

  1. Remove results that do not meet the criteria from the report and log this.
  2. As suggested in a discussion, populate the artifactLocation.uri field with a dummy value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant