Skip to content

Add fallback AI provider support to code review workflow #4

Add fallback AI provider support to code review workflow

Add fallback AI provider support to code review workflow #4

Workflow file for this run

# CodeSage's own AI review — uses the reusable workflow we provide to others
name: AI Code Review
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
inputs:
ai_provider:
description: 'Primary AI provider for this run'
required: false
default: 'openai'
type: choice
options:
- openai
- claude
jobs:
review:

Check failure on line 20 in .github/workflows/ai-review.yml

View workflow run for this annotation

GitHub Actions / AI Code Review

Invalid workflow file

The workflow is not valid. .github/workflows/ai-review.yml (Line: 20, Col: 3): Error calling workflow 'BLEND360/code-sage-code-review/.github/workflows/ai-review-reusable.yml@1892791f155c3dfbc98e2154aafe617619eee025'. The nested job 'review' is requesting 'pull-requests: write', but is only allowed 'pull-requests: none'.
uses: ./.github/workflows/ai-review-reusable.yml
with:
ai_provider: ${{ github.event_name == 'workflow_dispatch' && inputs.ai_provider || 'openai' }}
review_guidelines_path: '.github/review-guidelines.md'
enable_fallback: true
secrets:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}