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

Support SARIF output format #149

Open
ligurio opened this issue May 3, 2024 · 1 comment
Open

Support SARIF output format #149

ligurio opened this issue May 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ligurio
Copy link

ligurio commented May 3, 2024

The Static Analysis Results Interchange Format (SARIF) is an industry standard format for the output of static analysis tools. Github supports SARIF format and allows showing code annotations in a pull requests 1.

cbmc-viewer already helps to analyze results produced by CBMC, and it would be nice to implement exporting report to SARIF format.

Footnotes

  1. https://github.com/sett-and-hive/sarif-to-comment-action?tab=readme-ov-file#example-usage

@karkhaz
Copy link

karkhaz commented May 6, 2024

Thank you for this suggestion! As far as I can tell, we haven't looked into adding SARIF output either for CBMC or for Kani.

Currently we use a script that can run in a GitHub Action that summarizes the results of all the CBMC proofs in a repository. The script prints out the results in GitHub-compatible markdown; here's an example of a CI run summary that uses that code. However, it looks like SARIF has a much more native experience, here's a GitHub blog post that includes screenshots of how GitHub renders the SARIF information.

I'm going to put it on the agenda for our next team discussion. Might not have an update for this week, but we'll update the ticket as soon as we've discussed doing this. Thank you!

@feliperodri feliperodri added the enhancement New feature or request label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants