Draft: Pipeline execution policy POC
What does this MR do and why?
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.
How to set up and validate locally
- Enable the feature flag
echo "Feature.enable(:pipeline_execution_policy)" | rails c
- Create two new projects. One for testing and one as the security policy project
- On the testing projects left sidebar, select Security & Compliance and Policies
- Select Edit policy project
- Select your security policy project and Save
- On you security policy project, create a new file
.gitlab/security-policies/policy.yml
with content:--- pipeline_execution_policy: name: test_pipeline_execution description: hey enabled: true content: test job: stage: test script: - echo "Hello World"
- Add a simple
.gitlab-ci.yml
to the project - Start a pipeline. It should contain the
test job
defined in the pipeline execution policy.
Related to #441252
Edited by Andy Schoenen