Skip to main content

gitlab-ci-verify

GitHub Release PyPI version PyPI - Downloads DockerHub Pulls GitHub all releases download count CircleCI codecov Renovate Quality Gate Status Maintainability Rating Go Report Card Security Rating


Validate and lint your gitlab ci files using ShellCheck, the Gitlab API, curated checks or even build your own checks

Features

  • ShellCheck for scripts
  • Validation against Pipeline Lint API for project
  • Curated checks for common mistakes (feel free to contribute new ones)
  • Automatic detection of the current gitlab project with an option to overwrite
  • Available as pre-commit hook
  • Usable to valid dynamically generated pipelines using the python wrapper
  • Support for gitlab.com and self-hosted instances
  • Support for custom policies written in Rego
  • Resolve and validate includes (how it works and limitations)

Installation

See the Installation section in the documentation.

Documentation

You can find the full documentation on GitHub Pages, including:

  • How it works
  • How to add new checks
  • How to write custom policies using rego
  • How to authenticate with GitLab

Motivation

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.

Contributing

I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the configuration
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

To get started, please read the Contribution Guidelines.

Credits

This whole project wouldn't be possible with the great work of the following libraries/tools:

Metadata

Release files for gitlab-ci-verify 2.11.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitlab-ci-verify 2.11.15
File Size Uploaded Provenance Actions
gitlab_ci_verify-2.11.15.tar.gz 11.3 kB Without provenance Details for gitlab_ci_verify-2.11.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gitlab-ci-verify 2.11.15
File Interpreter ABI Platform Actions
gitlab_ci_verify-2.11.15-py3-none-any.whl Python 3 none any Details for gitlab_ci_verify-2.11.15-py3-none-any.whl

Total release size: 20.3 kB

Release files / gitlab_ci_verify-2.11.15.tar.gz

Download URL gitlab_ci_verify-2.11.15.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9d112d20e724e1df027fd12038e0995d4e70b3d7b21c95d35e4f4cb9eb36eab
BLAKE2b-256 checksum
How to use checksums
8e2b3f685596216ed373bc721cc0c9741a7816c5bca2465af7511b02bd9297d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.15.2

Release files / gitlab_ci_verify-2.11.15-py3-none-any.whl

Download URL gitlab_ci_verify-2.11.15-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cec7e58c24d7759233dcfa35ef91d8187039922c43648aa8719d940923c184b
BLAKE2b-256 checksum
How to use checksums
85b3e8dafe0876ccb6cc6ba4fbe7499a4b36357ded0894b814eaec64c52a2bb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.15.2

Security for gitlab-ci-verify 2.11.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.11.15 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page