Replies: 3 comments 11 replies
-
Hi @GridexX , I posted on Gitlab to see if they have some ideas... there is probably a more "SAST" way than JUnit to provide results to Gitlab, because JUnit seems to be for test classes About linters that do not manage SARIF yet... we have to find converters, or just say it's ok to not have them in results (for formatters like prettier, I don't think there is a lot of value to show the errors in Gitlab UI ) https://gitlab.com/gitlab-org/gitlab/-/issues/118496#note_1088263958 |
Beta Was this translation helpful? Give feedback.
-
@GridexX it seems gitlab can handle a json format to accept SAST results (could be code climate format) https://docs.gitlab.com/ee/ci/testing/code_quality.html Code quality report widget: https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportscodequality If you implement a sarif-to-gitlab script (json to json) , that will do the job :) |
Beta Was this translation helpful? Give feedback.
-
By the way I also wrote the sarif-junit converter, even if it's the less SAST and a bit useless but is always display. As described here, the CodeClimate report only show in case of a comparison between the main and a feature branch. If you could review it, it would be awesome, you are giving good advices and have more experience than me 😄 |
Beta Was this translation helpful? Give feedback.
-
Hello @nvuillam,
I'm an apprentice DevOps working for r2devops and I'm currently improving the Megalinter job.
The execution time could be decrease by render another output format than
TAP
.SARIF
seems to be a good alternative.Nevertheless some linters such as
prettier
and CSS or HTML linters are not compatible with this format, as described in the documentation.Moreover, we must keep the
JUnit
output format for GitLab and there aren't npm package yet to convert fromSARIF
toJUnit
as the one used here for converting fromTAP
toJUnit
.Have you any idea on how to keep the
JUnit
output without without converting fromTap
Thanks a lot 😄
Beta Was this translation helpful? Give feedback.
All reactions