Skip to content

Add frontend feature toggle

What does this MR do and why?

This adds the frontend changes required to use the Custom CI YAML feature toggle.

The MR is currently targeted at !138484 (merged) because it depends on the group settings to be present. As soon as this is merged, I can rebase on master.

How to set up and validate locally

  1. Enable the feature flag echo "Feature.enable(:compliance_pipeline_in_policies)" | rails c.
  2. Create a new group.
  3. Go to the group and select Secure -> Policies.
  4. Select New policy -> Scan execution policy.
  5. Select + Add new action.
  6. This should add a form for a security scan action
  7. Go to the group settings page.
  8. Expand the Permissions and group features section.
  9. Enable Run customized CI YAML file as security policy actions.
  10. Go to the group and select Secure -> Policies.
  11. Select New policy -> Scan execution policy.
  12. Select Add new action.
  13. Now there should be a choice to select Run CI/CD code. Select this.
  14. There should be a new section containing a text editor.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #435462 (closed)

Edited by Andy Schoenen

Merge request reports