diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml index dc145c6..e78e83c 100644 --- a/.github/workflows/code-review.yml +++ b/.github/workflows/code-review.yml @@ -10,9 +10,11 @@ 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 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. on: @@ -56,7 +58,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 }}