I am trying to enable dependency scanning via Edit .gitlab-ci.yml file manually option(Link).
When I am following the instructions and going through point 5 in real it doesn’t work. Below are the screenshots
So as describe in the point 5 just by adding the snippet the validate would have been successfully validate, but in reality I see error.
Please help me with this issue.

