Fix code source selection for code block action
What does this MR do and why?
This MR fixes code source selection
Code source selection was not possible for scan execution policy for run ci/cd code action
It happened because new Id was generated for every new action and it was treated like completely new object
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 |
---|---|
Different actions deletion and selection | selection.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(:compliance_pipeline_in_policies)
- Go to Secure -> Policies
- Create new
scan execution policy
- Add new Run
CI/CD
action - Try to change option in
Inserted CI codeblock
dropdown
Related to #439143 (closed)