Pipeline execution policy editor YAML parsing adds extra characters
Editing a CI code block in the policy editor seems to add an extra |
or 2
character to the policy YAML.
Screenshots and recordings
- Screen recording: https://www.awesomescreenshot.com/video/24329829?key=580b1165e81febff6da5339203ecd2a7
Policy editor adds extra character |
---|
Steps to reproduce
-
Create a group
-
Go to Settings -> General
-
Toggle the Permissions and group features section
-
Enable Run customized CI YAML file as security policy actions
-
Go to Secure -> Policies
-
Select New policy
-
Select Scan execution policy
-
Select Add new action
-
Select Run CI/CD code
-
Past the following code:
test job: stage: test
-
Observe that the YAML section on the right side contains:
ci_configuration: | |- test job: stage: test
The correct YAML would be:
ci_configuration: |-
test job:
stage: test
Edited by Artur Fedorov