Skip to content

RUN AS-IF-FOSS - Add basic security merge request widget

Mark Florian requested to merge 249543-add-core-mr-security-widget into master

What does this MR do?

Add basic security merge request widget for Core. It simply indicates whether security scans have run.

This is very much an MVC, and future iterations will change this dramatically.

Addresses #249543 (closed), part of &4388.

Screenshots

Screenshot_from_2020-10-07_19-40-37

Video

Testing locally

  1. Set up the GDK to run in FOSS_ONLY mode (put export FOSS_ONLY=1 in env.runit)
  2. Run gdk restart
  3. Enable the core_security_mr_widget feature flag
  4. Create a project which runs SAST and/or Secret Detection
  5. Open an MR which contains a secret in the diff, or code that our SAST analysers cover (e.g., a do-nothing .js file should do)
  6. Let the pipeline run
  7. Refresh the page

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #249543 (closed)

Edited by -

Merge request reports