Qlty CLI is a multi-language code quality tool for linting, auto-formatting, maintainability, security, and coverage with support for 70+ static analysis tools for 40+ languages and technologies.
The Qlty CLI is completely free for all use, including for commercial projects, with no limits on contributors.
This is a collection of reusable GitHub Actions to make it easy to integrate Qlty into your continuous integration workflows.
The qltysh/qlty-action/coverage action requires a free account on Qlty Cloud for code coverage reporting.
The other actions use the Qlty CLI and do not require Qlty Cloud.
| Action | Purpose |
|---|---|
| qltysh/qlty-action/coverage | Upload code coverage data to Qlty Cloud |
| qltysh/qlty-action/install | Install the Qlty CLI onto your CI runner |
| qltysh/qlty-action/fmt | Auto-format your code |
Before the coverage, fmt and install actions run the Qlty CLI, they check its Sigstore attestation with the GitHub CLI (gh). The check accepts only a SLSA provenance attestation made by the Qlty CLI's release build, .github/workflows/build.yml in qltysh/qlty running on main:
- If the check rejects the CLI, for example because no attestation matches the downloaded archive, the step fails and the CLI doesn't run.
- If the check can't finish because GitHub or Sigstore is unavailable, the CLI doesn't run either. The fmt and install steps fail. The coverage step fails only when
skip-errorsis false; see Whatskip-errorscovers. - If
gh2.67.0 or later isn't available where the step runs, the check can't run. The action logs a "Qlty CLI Not Verified" warning and runs the CLI anyway, whateverskip-errorsis set to. The unverified CLI runs with access to the job's tokens and secrets.
GitHub-hosted runners include gh. Self-hosted runners and container: jobs often don't:
- On a self-hosted runner, install
ghon the runner. - In a
container:job, the step runs inside the container, soghon the runner's host isn't used. Installghin the container image or in an earlier step.
See the GitHub CLI installation instructions. On Linux, use GitHub's package repository as described in Installing gh on Linux: some distributions' own gh packages are older than 2.67.0.
- Get Started with Qlty Cloud
- Read the documentation
- Join our Discord chat
- Community support via GitHub Discussions
- Feature requests via GitHub Discussions
- Bug reports via GitHub Issues
This reusable GitHub Action is provided under the MIT License.
Qlty CLI is published under a Fair Source license. As Fair Source, the Qlty CLI is free to use (including in commercial contexts), modify, and distribute in accordance with its license.
More details are available in the qltysh/qlty repository.