'Gitlab included file does not have a valid YAML syntax

When I'm checking .gitlab-ci.yml using CI lint, I'm getting following error:

Included file https://gitlab.ch/Screener/ContinousDelivery/-/raw/master/deployment/.gitlab-ci.yml does not have valid YAML syntax!

.gitlab-ci.yml:

include:
  - remote: "https://gitlab.ch/Screener/ContinousDelivery/-/raw/master/deployment/.gitlab-ci.yml"

But when I'm checking syntax of https://gitlab.ch/Screener/ContinousDelivery/-/raw/master/deployment/.gitlab-ci.yml check pass and status is correct.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source