# GitHub Actions

The SDK ships a **drop-in GitHub Actions workflow file**: [`samples/cicd/github_actions_gate.yml`](https://github.com/layerlens/stratix-python/blob/main/samples/cicd/github_actions_gate.yml). Copy to `.github/workflows/ai-quality-gate.yml`, add `LAYERLENS_STRATIX_API_KEY` as a repository secret, done.

The workflow calls the canonical gate script: [`samples/cicd/quality_gate.py`](https://github.com/layerlens/stratix-python/blob/main/samples/cicd/quality_gate.py). It evaluates recent traces against all judges and exits non-zero if pass rate falls below a configurable threshold (`--threshold 0.85` by default).

## See also

* [Tutorial 3: CI/CD gates](/6.-build-wire-your-code/03-cicd-gates.md)
* [Cookbook: containerized CI](/6.-build-wire-your-code/containerized-ci.md) — pre-baked Docker image variant
* [Use case: AI quality gates in CI/CD](/4.1-general-use-cases/ai-quality-gates-cicd.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.layerlens.ai/6.-build-wire-your-code/integration-github-actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
