From ceb6bc42b838452fd222c6b1f194d10cecfa001d Mon Sep 17 00:00:00 2001 From: ncave <777696+ncave@users.noreply.github.com> Date: Sat, 7 Mar 2026 11:23:45 -0800 Subject: [PATCH] Update Python type-checking action --- .github/workflows/python-type-checking.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-type-checking.yml b/.github/workflows/python-type-checking.yml index 373f06741..ab1ae9825 100644 --- a/.github/workflows/python-type-checking.yml +++ b/.github/workflows/python-type-checking.yml @@ -116,7 +116,7 @@ jobs: echo "count=$COUNT" >> $GITHUB_OUTPUT - name: Find existing comment - uses: peter-evans/find-comment@v3 + uses: peter-evans/find-comment@v4 id: find-comment with: issue-number: ${{ github.event.pull_request.number }} @@ -124,7 +124,9 @@ jobs: body-includes: Python Type Checking - name: Create or update PR comment - uses: peter-evans/create-or-update-comment@v4 + # Skip if the PR event is triggered by a fork to avoid permission issues when trying to update comments + if: github.event.pull_request.head.repo.full_name == github.repository + uses: peter-evans/create-or-update-comment@v5 with: comment-id: ${{ steps.find-comment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }}