Removing branch_exceptions in policy editor doesn't change yaml
Summary
Editing a scan execution security policy that has branch_exceptions
doesn't update the policy yaml when exceptions are removed.
Steps to reproduce
- Create a project.
- Go to Secure -> Policies.
- Create a scan execution policy.
- Define a branch exception. For example:
- Change the Exceptions field to No exceptions.
- Observe that the policy yaml is not updated.
What is the expected correct behavior?
Changing the Exceptions field to No exceptions should either remove the branch_exceptions
field from the yaml or set it to []
.
Relevant logs and/or screenshots
Possible workaround
Switch to .yaml mode and remove the branch_exceptions
field.
Edited by Andy Schoenen