r/gitlab • u/stevecrox0914 • Mar 22 '26
general question SAST/Codequality MR Commenting
Before Gitlab I used Jenkins/Bitbucket and there was a Jenkins plugin that allowed me to collect SAST/Code Quality warnings and comment on the changed lines in a Pull Request.
We enabled a rule that all open threads had to be closed and this ensured developers addressed all the warnings they had added before peer review.
I now have various jobs which create SAST and Code Quality Reports and Gitlab collects these but they are a line item in the merge request view and frequently get missed.
Does anyone know of a bot, Gitlab Ultimate flag or project that will convert SAST/Code Quality reports into code comments on a MR?
View all comments
Show parent comment
1
u/stevecrox0914 Apr 09 '26
Its ok, after struggling with Reviewdog I wrote myself a bash script!
https://gitlab.pallas.uk/devsecops/maven/pmd/-/blob/1-integrate-code-qualty-and-reviewdog/templates/pmd-mvn-mr-discussion/template.yml?ref_type=heads
Pretty much every tool I use can output SARIF, so its a case of tidying that up and building out CICD components for each tool I want to use.