Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/openrouter-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# secrets:
# OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
# permissions:
# actions: write
# contents: read
# pull-requests: write
# statuses: write
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ on:
review_level: { default: auto, type: choice, options: [auto, deep, cancel] }

permissions:
actions: write
contents: read
pull-requests: write
statuses: write
Expand All @@ -128,6 +129,7 @@ jobs:
secrets:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
permissions:
actions: write
contents: read
pull-requests: write
statuses: write
Expand Down Expand Up @@ -192,6 +194,12 @@ its provenance and checks current review receipts. After proof publication,
a bot-dispatched completion similarly wakes `openrouter-ci-broker.yml` when
installed. Human-triggered reviews retain their native completion events.

The review caller must grant `actions: write` when adopting this revision,
even if profiles are disabled: GitHub validates reusable-job permissions before
its runtime conditions. Only the notification job requests Actions write access;
model review jobs retain the reusable workflow's `actions: read` default.
Completion callers already require Actions write access for policy refreshes.

Consumers with a CI broker must accept a required string `source_run_id` on
`workflow_dispatch`, run only on the default branch, wait for that profile run
to finish, and verify its registered workflow ID and path before running their
Expand Down