Updates yaml schema for pipeline execution policy
What does this MR do and why?
The code changes are related to the ActionSection
and CodeBlockAction
components, used in the Security Orchestration feature of GitLab. These components allow users to define custom actions for security scans, including the option to link to existing files or insert code blocks.
Additionally, the code updates the way project IDs are handled, making use of GraphQL queries to fetch project information. This improves the overall performance and accuracy of the components, especially when dealing with linked files.
Overall, these changes enhance the usability and reliability of the Security Orchestration feature, making it easier for users to define and manage custom actions for security scans.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Description | UI |
---|---|
Schema without id | schema.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Enable feature flag
Feature.enable(:pipeline_execution_policy_type)
- Go to Group/Projects
- Secure -> Polices
- New policy -> Pipeline Execution policy
- Select project and switch back and force between modes
Related to #467244 (closed)