Display diff-based scans banner
What does this MR do and why?
When diff-based scans are enabled, we want to display a banner in the UI that notifies users about existing pipeline being a diff-based scan. This MR implements that logic.
References
Screenshots or screen recordings
Enabled:
Not enabled:
How to set up and validate locally
- Enable feature flag:
echo "Feature.enable(:vulnerability_partial_scans)" | rails c - Create an empty project
- Create an MR to add the
.gitlab-ci.ymlwith the following content:
sast:
stage: test
script: wget https://gitlab.com/gitlab-org/gitlab/-/raw/5d7bc4e75ae688b968a6debc0b8f62e7eb1f54d1/ee/spec/fixtures/security_reports/master/gl-sast-report-differential.json
artifacts:
reports:
sast: gl-sast-report-differential.json
- Visit the pipeline vulnerability report and see the banner
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #543639 (closed)
Edited by Savas Vedova

