Add 'code flow' to mr widget
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
- Upload a GitLab Ultimate license
- Enable the feature flag (
echo "Feature.enable(:pipeline_vulnerability_code_flow)" | rails c
) - Clone the code flow project and run his pipeline to display vulnerabilities
- 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)
- Navigate to the your MR page => Overview => Open 'Security scanning' section => Select the first vulnerability
- 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