From 143bde2f1b77bab0c7e1561d59ee2c6eb583eb63 Mon Sep 17 00:00:00 2001 From: Marcin Polewski Date: Fri, 30 Oct 2026 19:26:41 -0600 Subject: [PATCH] Move the review workflow to code-review v0.3.0, which fetches the pull request itself The engine fetches the pull request's head from v0.3.0 on, so the workflow drops its checkout of it, and CodeQL no longer reports the workflow. --- .github/workflows/code-review.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 8a21815..dc145c6 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -7,7 +7,7 @@ name: Code review # someone with write access reviews the latest commit on demand. A `skip-review` label skips the automatic reviews. # # pull_request_target and issue_comment both run this file from the default branch, so a pull request can't change its -# own review. Its code is checked out only to be read: nothing from it is built, run or installed. +# own review. The engine fetches its code only to read it: nothing from it is built, run or installed. # # This file is yours: template updates show their changes to it and leave your copy alone, so a pin you bumped isn't # moved back. The action is pinned to an exact release tag, never a branch or a floating major: it receives the @@ -55,16 +55,8 @@ jobs: path: base persist-credentials: false - - name: Check out the pull request's head to read - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - ref: ${{ github.event.pull_request.head.sha || format('refs/pull/{0}/head', github.event.issue.number) }} - path: pr - fetch-depth: 0 - persist-credentials: false - - name: Review - uses: NCodeGroup/code-review@v0.2.1 + uses: NCodeGroup/code-review@v0.3.0 with: app-private-key: ${{ secrets.NCODE_REVIEW_APP_PRIVATE_KEY }} bedrock-api-key: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }}