Changing pipeline execution policy external CI file schema
What does this MR do and why?
This MR changes schema for external file path
Yaml structure is changed and now
using include structure for pipeline
execution policy ci action
New schema for referencing external file
-
Instead of
ci_configuration_path
, new structure is used:ci_configuration: include:
-
Since this feature is experimental, backward compatibility is not a concern
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 | Video |
---|---|
External file path | Include structure |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Enable feature flag:
Feature.enable(:compliance_pipeline_in_policies)
- Go to Settings -> General
- Toggle the Permissions and group features section
- Enable Run customized CI YAML file as security policy actions
- Go to Secure -> Policies
- Select New policy
- Select Scan execution policy
- Select Add new action
- Select Run CI/CD code
- Select Linked existing CI file, select options
- Check schema in yaml previewer
Related to #438794 (closed)
Edited by Artur Fedorov