Validate and lint your gitlab ci files using ShellCheck and the Gitlab API
8.1K
Validate and lint your gitlab ci files using ShellCheck, the Gitlab API, curated checks or even build your own checks
See the Installation section in the documentation.
You can find the full documentation on GitHub Pages, including:
Unfortunately, GitLab didn't provide a tool to validate CI configuration for quite a while.
Now that changed with the glab CLI providing glab ci lint but it is quite limited and under the hood just calls the
new CI Lint API.
Throughout the years quite some tools evolved, but most of them are either outdated, painful to use or install, and basically also provide the lint functionality from the API.
As most of the logic in pipelines is written in shell scripts via the *script attributes these are lacking completely
from all tools out there as well as the official lint API.
The goal of gitlab-ci-verify is to provide the stock CI Lint functionality plus shellcheck. Completed in the future some rules to lint that common patterns are working as intended by GitLab and void them from being pushed and leading to unexpected behavior.
I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:
To get started, please read the Contribution Guidelines.
This whole project wouldn't be possible with the great work of the following libraries/tools:
Content type
Image
Digest
sha256:4ae8e5bec…
Size
21.2 MB
Last updated
10 days ago
docker pull timoreymann/gitlab-ci-verify