Use security policy custom CI YAML feature toggle in frontend
In !138484 (merged) we are adding a feature toggle as a group level setting. The toggle itself is behind the compliance_pipeline_in_policies
feature flag. This means to enable the feature:
- The
compliance_pipeline_in_policies
must be enabled. - The
toggle_security_policy_custom_ci
group setting must be enabled.
!138484 (merged) only covers the backend changes. We also need to pass the value of the toggle_security_policy_custom_ci
group setting to the UI component and check that the toggle and the feature flag are both enabled. The relevant lines are:
- https://gitlab.com/gitlab-org/gitlab/-/blob/e9d45bb9041f5261d462fdda8c7e2e246fc41d0b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_execution/editor_component.vue#L136
- https://gitlab.com/gitlab-org/gitlab/-/blob/e9d45bb9041f5261d462fdda8c7e2e246fc41d0b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_execution/editor_component.vue#L293
- https://gitlab.com/gitlab-org/gitlab/-/blob/e9d45bb9041f5261d462fdda8c7e2e246fc41d0b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_execution/lib/from_yaml.js#L41
- https://gitlab.com/gitlab-org/gitlab/-/blob/e9d45bb9041f5261d462fdda8c7e2e246fc41d0b/ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_execution/lib/from_yaml.js#L75