Skip to content

Add Custom Actions support with periodic sync and UI integration #3

Add Custom Actions support with periodic sync and UI integration

Add Custom Actions support with periodic sync and UI integration #3

Workflow file for this run

name: AI PR Review

Check warning on line 1 in .github/workflows/ai-review.yml

View workflow run for this annotation

GitHub Actions / AI PR Review

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
concurrency:
group: ai-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
review:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Match the trusted workflow revision, even when the PR base SHA predates
# installation of the review script. Never checkout the PR head.
- uses: actions/checkout@v4
with:
ref: ${{ github.workflow_sha }}
persist-credentials: false
- name: Review PR
env:
GITHUB_TOKEN: ${{ github.token }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
OPENROUTER_MODEL: ${{ vars.AI_REVIEW_OPENROUTER_MODEL }}
GROQ_MODEL: ${{ vars.AI_REVIEW_GROQ_MODEL }}
DEEPSEEK_MODEL: ${{ vars.AI_REVIEW_DEEPSEEK_MODEL }}
run: python3 scripts/ai-review/review.py