> ## Documentation Index
> Fetch the complete documentation index at: https://docs.promptguard.co/llms.txt
> Use this file to discover all available pages before exploring further.

# CI/CD Security Gate

> Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.

> [!NOTE]
>
> **Coming soon.** This feature is under active development. [Contact us](https://promptguard.co/contact) for early access.

The CI/CD Security Gate will run automated adversarial tests against your security configuration on every pull request.

**Available today:** use the [CLI](https://docs.promptguard.co/tools/cli.md) in any CI pipeline. Check your prompt templates against the bundled local rules, with no API key, and check the integration against the live API:

```bash theme={"system"}
promptguard scan --offline --file prompts/system.txt
promptguard verify --json
```

Each exits `2` when it finds a problem, which fails the CI step. The **CI/CD Integration** section of the [CLI page](https://docs.promptguard.co/tools/cli.md) shows both in GitHub Actions and GitLab CI.

See [Best Practices](https://docs.promptguard.co/production/best-practices.md) for integrating PromptGuard into your deployment workflow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.