Quickstart
Add verified AI pull-request reviews to a GitHub Actions workflow.
Add Heyo Code Audit to a workflow that runs on pull_request. The Action needs
the full Git history to compare the pull request, permission to create a Check
and review comments, and a secret for the selected model provider.
- 1
Create a provider secret
For this OpenAI example, create an
OPENAI_API_KEYActions secret in the repository or organization. The token remains a GitHub secret and is passed to Pi only for the chosen provider. - 2
Add the workflow
Create
.github/workflows/heyo-code-audit.yml:yamlUse
@v1for the newest compatible stable release. Pin an immutable release, for example@v1.1.1, if your supply-chain policy requires an exact version. - 3
Open or update a pull request
Heyo publishes a Check and, by default, an inline review. A
failureCheck conclusion means at least one verified finding met the configuredfail-onthreshold, which defaults tohigh.
Next steps
Heyo intentionally supports pull_request only. This prevents
untrusted fork code from running with elevated repository credentials.