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
- Enable the feature flag
echo "Feature.enable(:compliance_pipeline_in_policies)" | rails c
. - Create a new group.
- Go to the group and select Secure -> Policies.
- Select New policy -> Scan execution policy.
- Select + Add new action.
- This should add a form for a security scan action
- Go to the group settings page.
- Expand the Permissions and group features section.
- Enable Run customized CI YAML file as security policy actions.
- Go to the group and select Secure -> Policies.
- Select New policy -> Scan execution policy.
- Select Add new action.
- Now there should be a choice to select Run CI/CD code. Select this.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #435462 (closed)
Edited by Andy Schoenen