# QuillShield integrations: GitHub, GitLab.com, CLI and REST API

URL: https://shield.quillaudits.com/integrations/

QuillShield connects to your code in four ways. The GitHub App and GitLab.com run pull request checks against your last full audit, the CLI starts and follows audits from a terminal or a CI job, and the REST API returns findings and reports. Each section links to the full page in the QuillShield docs.

Last updated 24 November 2026. 4 minute read. By the QuillShield team.

## GitHub App

The GitHub App runs a QuillShield check on each pull request and compares the change with the security graph from your last full audit. Each pull request gets a GitHub Check, a commit status and one comment that is updated in place, and the check fails at the severity you choose: **Critical**, **High or above** (the default), **Medium or above** or **Low or above**.

The App reads your code and writes only checks, statuses and pull request comments. When you install it, it asks to read metadata and contents, and to read and write pull requests, checks and commit statuses.

To set it up, run a full audit of the base branch, open **CI/CD Checks**, go to **Setup & automation**, install the App on the repository or the organization and switch on **Scan Pull Requests**. Then make the check required in GitHub's branch protection or rulesets, which GitHub offers on public repositories and, for private ones, on its Pro, Team and Enterprise plans. **Scan Every Commit** also checks pushes to branches that have no open pull request.

If you can't install the App, the **Use GitHub Actions** workflow on the same page requests the checks with the secrets `QUILLAUDITS_API_KEY` and `QUILLAUDITS_ORG_ID`. It does not check out or run your code. Pull requests from forks don't receive secrets, so they need the App.

The guide to [adding security checks to CI on GitHub](https://shield.quillaudits.com/guides/check-every-pull-request-on-github/) walks through each step, and the docs cover [connecting GitHub](https://www.quillaudits.com/quillshield/guides/guides/connect-github) and [CI/CD Checks](https://www.quillaudits.com/quillshield/guides/guides/ci-cd-checks) in full.

## GitLab.com

Sign in with GitLab, or connect it under **Integrations** in **Settings**, then import a project with **Browse GitLab**. A full audit of a GitLab.com repository includes five pull request checks, the same as on GitHub.

After the full audit, switch on **Scan Merge Requests** in **CI/CD Checks**. QuillShield then posts a commit status named QuillShield Check and one note on each merge request it checks.

Two limits apply. On the GitLab Free plan the status can't be made required the way a GitHub check can, so on Free a failing status does not block a merge by itself, and self-managed GitLab is not covered. The docs page [Connect GitLab](https://www.quillaudits.com/quillshield/guides/guides/connect-gitlab) has the details.

## CLI

The QuillShield CLI starts and follows audits from a terminal or a CI job. Install it from npm as `@quillaudits/cli`, and it runs as `qs`.

```
npm install -g @quillaudits/cli
qs init
qs audit https://github.com/org/contract --ref main --watch
```

`qs init` asks for the API URL, which is `https://api-production-7027.up.railway.app`, and an API key from **API keys** in **Settings**. `qs audit` asks you to confirm the charge before it starts, and `--yes` skips that question, which you need only in CI. Keep the API key in your CI's secret store, never in the repository.

The docs pages [CLI install and init](https://www.quillaudits.com/quillshield/developers/cli-install-and-init) and [CLI submit and watch](https://www.quillaudits.com/quillshield/developers/cli-submit-and-watch) list every command.

## REST API

The REST API gives your own tools findings, reports and live events, and findings come back as JSON. The CLI and the GitHub Actions workflow both use it. Create an API key under **API keys** in **Settings** and send it with each request.

The [REST API docs](https://www.quillaudits.com/quillshield/developers/developers) describe the endpoints, and [CI/CD Checks for developers](https://www.quillaudits.com/quillshield/developers/ci-cd-checks) covers starting checks from your own pipeline.

## Common questions

### Which integration should I set up first?

The one where your code lives. On GitHub, the App gives you pull request checks that can block a merge. On GitLab.com, Scan Merge Requests posts a status and a note. Add the CLI or the REST API when you want audits started from scripts or CI.

### What can the QuillShield GitHub App change in my repository?

Only checks, commit statuses and pull request comments. It reads your code and metadata, and it does not push commits or change branch rules.

### Does QuillShield work with self-managed GitLab?

No. GitLab support covers GitLab.com projects, and self-managed GitLab is not covered.

### Can I run QuillShield in CI without the GitHub App?

Yes, in two ways. The GitHub Actions workflow from CI/CD Checks requests pull request checks with two repository secrets, and the CLI can start a full audit from any CI job with `qs audit --yes`. Pull requests from forks still need the App.

## In the QuillShield docs

- [Connect GitHub, QuillShield docs](https://www.quillaudits.com/quillshield/guides/guides/connect-github)
- [Connect GitLab, QuillShield docs](https://www.quillaudits.com/quillshield/guides/guides/connect-gitlab)
- [CI/CD Checks, QuillShield docs](https://www.quillaudits.com/quillshield/guides/guides/ci-cd-checks)
- [CI/CD Checks for developers, QuillShield docs](https://www.quillaudits.com/quillshield/developers/ci-cd-checks)
- [CLI install and init, QuillShield docs](https://www.quillaudits.com/quillshield/developers/cli-install-and-init)
- [CLI submit and watch, QuillShield docs](https://www.quillaudits.com/quillshield/developers/cli-submit-and-watch)
- [REST API, QuillShield docs](https://www.quillaudits.com/quillshield/developers/developers)
- [Why isn't my integration working?, QuillShield docs](https://www.quillaudits.com/quillshield/help-center/integrations/why-isnt-my-integration-working)
