Skip to content

Adding SAST adherence in UI

Hitesh Raghuvanshi requested to merge 440722-frontend-changessast into master

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

image

How to set up and validate locally

  1. You need to have a group with Ultimate license, let's say the name of the group is test-group.
  2. Enable the feature flag by running Feature.enable(:enable_adherence_check_for_scanners) in the rails console.
  3. 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.
  4. You should have a ruby file in your project for sast run and sast scanner config in your project's pipeline config.
  5. Make sure the pipeline for the default branch of the project successfully finishes.
  6. Then visit the compliance dashboard for the project and there you will observe an entry for sast scan as follows:

image

Related to #440722

Edited by Hitesh Raghuvanshi

Merge request reports

Loading