Skip to content

About

▶️ Qlty GitHub Action

Resources

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Repository files navigation

Qlty

Integrate Qlty into your GitHub Actions workflows

Maintainability Code Coverage Unit Tests Latest release docs.qlty.sh

What is Qlty?

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.

What is this project?

This is a collection of reusable GitHub Actions to make it easy to integrate Qlty into your continuous integration workflows.


🖥️ Requirements

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.


▶️ Actions

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

Verifying the Qlty CLI

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-errors is false; see What skip-errors covers.
  • If gh 2.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, whatever skip-errors is set to. The unverified CLI runs with access to the job's tokens and secrets.

Installing gh

GitHub-hosted runners include gh. Self-hosted runners and container: jobs often don't:

  • On a self-hosted runner, install gh on the runner.
  • In a container: job, the step runs inside the container, so gh on the runner's host isn't used. Install gh in 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.


🛟 Help or Feedback


⚖️ License

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.


About

▶️ Qlty GitHub Action

Resources

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages