-
Notifications
You must be signed in to change notification settings - Fork 6
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
SARIF output from Clang Static Analyzer #32
Comments
Hello,
While there was some actual errors:
Did I missed something? |
Hi @xchapron-ledger, I added
I added a deliberate divide-by-zero error into some code: // deliberate error
int test(int x){
return 10 / (x - x); // warn
} and ran
scan-build seems to create a
Most files had no errors so had the same content similar to yours above. However, one file was different to the others, this contained info on the scan-build warning:
I think the |
Hi,
It would be nice if the Clang Static Analyzer workflow output was uploaded to GitHub in SARIF format.
See here: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github
scan-build
can output SARIF format files simply by adding-sarif
to thescan-build
command in the Ledger SDKMakefile.rules_generic
fileSomething similar to this may also need to be added to the workflow file:
The text was updated successfully, but these errors were encountered: