From 7c36418e237f2ae5662b1e538b730e7daf42a135 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Thu, 22 Jan 2026 22:01:05 +0200 Subject: [PATCH] chore: allow review comments on forks --- .github/workflows/oc-review.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/oc-review.yml b/.github/workflows/oc-review.yml index c4af5c25..c74aa1f4 100644 --- a/.github/workflows/oc-review.yml +++ b/.github/workflows/oc-review.yml @@ -1,7 +1,7 @@ name: oc review on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened, ready_for_review] jobs: @@ -11,7 +11,7 @@ jobs: permissions: id-token: write contents: read - pull-requests: read + pull-requests: write issues: read steps: @@ -24,6 +24,7 @@ jobs: uses: anomalyco/opencode/github@latest env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: model: opencode/gpt-5.2-codex prompt: |