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 }}