(Re)enable linting .gitlab-ci inline scripts
Release notes
Problem to solve
As a developer, I want to lint the script parts of my .gitlab-ci.yml
files, so I can find potential issues and solve them.
Intended users
- Sasha (Software Developer)
- Priyanka (Platform Engineer)
- Cameron (Compliance Manager): Any QA persona
User experience goal
Without the feature, if I as a user want to lint my inline .gitlab-ci.yml
scripts, I need to copy past the script text to a separate file and run my linter on that file.
With the feature, linting my inline .gitlab-ci.yml
scripts is automated. And the results can be added to the MR overview and used with policies.
Proposal
I propose to revive the disabled existing functionality as hinted here:
https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/doc/development/cicd/templates.md#syntax-guidelines
The code may have to be refurbished.