Get project root ref and verify file path
What does this MR do and why?
Get project root ref and verify file path
- use root ref for verification of file path of code action block
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.
Before | After |
---|---|
N/A | root_ref_validation |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Enable the feature flag
echo "Feature.enable(:compliance_pipeline_in_policies)" | rails c
. - Navigate to a group => Settings => General => Permissions and group features => Enable
Security policy pipeline execution action
- Navigate to a project in the group => Secure => Policies => New policy => Scan Execution Policy
- Click
Add action
=>Run CI/CD code
=> RunLinked existing CI file
- Verify nothing is outlined in red
- Select the current project you are in as the project
- Type in
.gitlab/security-policies/policy.yml
as the file - Verify that the verification fails
- Change the project to the security policy project you selected in Step 3
- Verify that the verification succeeds
Related to #443341 (closed)
Edited by Alexander Turinske