From 8c260e49141dc9eaa8d585423ce704d349315b82 Mon Sep 17 00:00:00 2001 From: Marcin Polewski Date: Fri, 30 Oct 2026 19:41:01 -0600 Subject: [PATCH 1/2] Pin the review workflow to code-review v0.3.1's commit SHA --- .github/workflows/code-review.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index dc145c6..67d15dc 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -10,9 +10,10 @@ name: Code review # 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 -# organization's keys, and code-review's tag ruleset forbids moving or deleting a tag. Dependabot's github-actions -# entry opens each bump. Run tools/Enable-CodeReview.ps1 from a clone of NCodeGroup/code-review once for this +# moved back. The action is pinned to a release's full commit SHA, with its tag in a comment: never a tag, a branch or +# a floating major, because it receives the organization's keys, and a SHA is the one pin nobody can move (CodeQL's +# extended suite flags any other). Dependabot's github-actions entry opens each bump and updates the SHA and the tag. +# Run tools/Enable-CodeReview.ps1 from a clone of NCodeGroup/code-review once for this # repository, which creates the code-review environment and gives it the organization's secrets. on: @@ -56,7 +57,7 @@ jobs: persist-credentials: false - name: Review - uses: NCodeGroup/code-review@v0.3.0 + uses: NCodeGroup/code-review@eaa9846049fdda1ce724fc34107391ba5f6d8708 # v0.3.1 with: app-private-key: ${{ secrets.NCODE_REVIEW_APP_PRIVATE_KEY }} bedrock-api-key: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }} From de6aae0a831478bf04f7b9b2f150a57f83482941 Mon Sep 17 00:00:00 2001 From: Marcin Polewski Date: Fri, 30 Oct 2026 19:47:18 -0600 Subject: [PATCH 2/2] Name the CodeQL query the pin comment refers to --- .github/workflows/code-review.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index 67d15dc..e78e83c 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -11,8 +11,9 @@ name: Code review # # 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 a release's full commit SHA, with its tag in a comment: never a tag, a branch or -# a floating major, because it receives the organization's keys, and a SHA is the one pin nobody can move (CodeQL's -# extended suite flags any other). Dependabot's github-actions entry opens each bump and updates the SHA and the tag. +# a floating major, because it receives the organization's keys, and a SHA is the one pin nobody can move. CodeQL's +# extended suite reports any other pin as actions/unpinned-tag. Dependabot's github-actions entry opens each bump and +# updates the SHA and the tag. # Run tools/Enable-CodeReview.ps1 from a clone of NCodeGroup/code-review once for this # repository, which creates the code-review environment and gives it the organization's secrets.