From 2141bc9f6acc5eb2ae66f7bfdc64696c22730234 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Tue, 8 Sep 2026 13:50:41 -0400 Subject: [PATCH] docs: require caller permission for explicit completion dispatch --- .github/workflows/openrouter-code-review.yml | 1 + README.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/openrouter-code-review.yml b/.github/workflows/openrouter-code-review.yml index e8d545c..93bf07d 100644 --- a/.github/workflows/openrouter-code-review.yml +++ b/.github/workflows/openrouter-code-review.yml @@ -14,6 +14,7 @@ # secrets: # OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} # permissions: +# actions: write # contents: read # pull-requests: write # statuses: write diff --git a/README.md b/README.md index 910efbe..650ee29 100644 --- a/README.md +++ b/README.md @@ -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 @@ -128,6 +129,7 @@ jobs: secrets: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} permissions: + actions: write contents: read pull-requests: write statuses: write @@ -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