Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/reusable-ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,17 @@ jobs:
name: AI Review
if: inputs.run-ai-review && github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
# Note: pull-requests: write must be granted by the caller workflow.
# A reusable workflow cannot elevate permissions beyond what the caller
# provides; declaring write here when the caller is read-only causes a
# startup_failure with no log output. Callers that want AI review to
# post PR comments should set permissions on the calling job, e.g.:
# jobs:
# ci-pipeline:
# permissions:
# contents: read
# pull-requests: write
# uses: chittyfoundation/.github/.github/workflows/reusable-ci-pipeline.yml@main
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
steps:
Expand Down
Loading