CI/CD Integrations
Seamlessly integrate AI code review into your development workflow. GitHub Actions, GitLab CI, Git hooks, and popular IDEs.
GitHub Actions
The simplest integration. Add a workflow file to automatically review code on every push and PR.
30s
Setup Time
SARIF
Security Tab
L1–L3
Scan Levels
Add API Key to Secrets
Go to repo Settings → Secrets → Actions, add your LLM provider API key.
Secret name: OPENAI_API_KEY
Supports OpenAI, GLM, DeepSeek, Anthropic, Ollama, and 3 more providers
Create Workflow File
Save the following to .github/workflows/ocr.yml
name: AI Code Review
on: [push, pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Open Code Review
uses: raye-deng/open-code-review@v2
with:
level: l3
provider: openai
api-key: ${{ secrets.OPENAI_API_KEY }}
# Upload SARIF for GitHub Security tab
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: ocr-report.sarif(Optional) Enable Auto-Heal
Automatically detect and fix AI code defects in PRs.
name: AI Code Review + Auto-Heal
on:
pull_request:
types: [opened, synchronize]
jobs:
review-and-heal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install OCR
run: npm install -g @opencodereview/cli
- name: Scan
run: ocr scan ./src --level l3 --provider openai --api-key ${{ secrets.OPENAI_API_KEY }}
- name: Auto-Heal (dry run)
run: ocr heal ./src --dry-run --provider openai --api-key ${{ secrets.OPENAI_API_KEY }}
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: ocr-report.sarifThat's it!
After pushing, every PR will automatically run AI code review. Results appear in the GitHub Security tab and PR comments.
Ready to add AI code review to your pipeline?
Start free, no credit card required. L1 scans are always free. L3 deep scans work with free LLM providers.