Skip to content

Fix code source selection for code block action

Artur Fedorov requested to merge 438794-policies-external-file-schema into master

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)
  1. Go to Secure -> Policies
  2. Create new scan execution policy
  3. Add new Run CI/CD action
  4. Try to change option in Inserted CI codeblock dropdown

Related to #439143 (closed)

Merge request reports

Loading