From 72cf3e4cb2575655c37b32f880957215833e115f Mon Sep 17 00:00:00 2001 From: fllesser Date: Sat, 31 Jan 2026 14:47:46 +0800 Subject: [PATCH] fix(ci): only update comment on the owner's pull requests --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52caf639..b8c83e92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,7 +211,7 @@ jobs: use_oidc: true - name: Find or Create Comment - if: ${{ github.event.pull_request.number }} + if: ${{ github.event.pull_request.number && github.event.pull_request.user.login == github.repository_owner }} uses: peter-evans/find-comment@v4 id: fc with: @@ -219,7 +219,7 @@ jobs: comment-author: "github-actions[bot]" - name: Update Comment - if: ${{ github.event.pull_request.number }} + if: ${{ github.event.pull_request.number && github.event.pull_request.user.login == github.repository_owner }} uses: peter-evans/create-or-update-comment@v5 with: comment-id: ${{ steps.fc.outputs.comment-id }}