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

[cmd] Add support for sarif export in parser cmd #4327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgagneret-embedded
Copy link

@tgagneret-embedded tgagneret-embedded commented Aug 26, 2024

Hello,

This PR allows to run CodeChecker parse -e sarif ./results -o sarif.json.

This PR only uses the convert function already present in Sarif Parser (https://github.com/Ericsson/codechecker/blob/master/tools/report-converter/codechecker_report_converter/report/parser/sarif.py#L297) and exposes it to the parser cmd.

This would close #4036 I think (I did not test the output on Github)

@tgagneret-embedded
Copy link
Author

Using https://sarifweb.azurewebsites.net/Validation it seems that the SARIF output file have some issues that need to be fixed for Github integration.

Do you think another PR should be created to support Github integration ?

@tgagneret-embedded tgagneret-embedded force-pushed the feature/sarif_export_support_parser branch from 54a5582 to 949c689 Compare August 28, 2024 07:59
@tgagneret-embedded
Copy link
Author

Linting issue are fixed. CI can run again.

@tgagneret-embedded
Copy link
Author

@bruntib @vodorok ?

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

Successfully merging this pull request may close these issues.

Support exporting Static Analysis Results Interchange Format (SARIF)
1 participant