Adding SAST adherence in UI
What does this MR do and why?
In MR for SAST scanner we are introducing adherence checks for SAST scanner runs on a project.
We need to add corresponding changes in UI.
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- You need to have a group with Ultimate license, let's say the name of the group is
test-group
. - Enable the feature flag by running
Feature.enable(:enable_adherence_check_for_scanners)
in the rails console. - Create a project in the group, I have created a reference project https://gitlab.com/issue-reproduce/hraghuvanshi-group/sast_adherence_test, you can also clone the contents of this project in your test project. I contains all the required file including pipeline configuration.
- You should have a ruby file in your project for sast run and sast scanner config in your project's pipeline config.
- Make sure the pipeline for the default branch of the project successfully finishes.
- Then visit the compliance dashboard for the project and there you will observe an entry for sast scan as follows:
Related to #440722
Edited by Hitesh Raghuvanshi