Skip to content

Add 'code flow' to mr widget

Chen Charnolevsky requested to merge 472818-add-code-flow-to-mr-widget into master

What does this MR do and why?

Add 'code flow' of vulnerability to 'MR widget' section

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2024-09-24_at_22.56.05 Screen_Recording_2024-09-24_at_22.54.36

How to set up and validate locally

  1. Upload a GitLab Ultimate license
  2. Enable the feature flag (echo "Feature.enable(:pipeline_vulnerability_code_flow)" | rails c)
  3. Clone the code flow project and run his pipeline to display vulnerabilities
  4. If the pipeline is failed, do those steps:
  • Go to your locally project and edit with web IDE
  • Create a new file called: gl-sast-report.json and copy the content from here: gl-sast-report.json
  • Edit .gitlab-ci.yml and pasted this content: gitlab-ci.yml
  • Create an MR and don't merge him
  • (Then the pipeline will be successful because this pipeline is simulates the artifact)
  1. Navigate to the your MR page => Overview => Open 'Security scanning' section => Select the first vulnerability
  2. Validate you see 'code flow' tab, Go through the tabs and check that it works well.

Numbered steps to set up and validate the change are strongly suggested.

Related to #472818

Merge request reports

Loading