From b3282d926cbcfac495b8986ea0958b6ee573cd36 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Thu, 19 Mar 2026 12:16:27 +0530 Subject: [PATCH] Fix PR size check failing on fork PRs (#51902) Follow-up https://github.com/zed-industries/zed/pull/51876 Use `pull_request_target` for PR size check so the workflow has write permissions to manage labels on fork PRs. Safe since we don't execute any PR code here. Failing example: https://github.com/zed-industries/zed/actions/runs/23282504031/job/67698793729?pr=48845 Release Notes: - N/A --- .github/workflows/pr-size-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-size-check.yml b/.github/workflows/pr-size-check.yml index 215bb6cfd8076364db5361df90c28ac1e13f8178..670a11587ea9d5b39079a38b11eccb813b4e9e7f 100644 --- a/.github/workflows/pr-size-check.yml +++ b/.github/workflows/pr-size-check.yml @@ -11,7 +11,7 @@ name: PR Size Check on: - pull_request: + pull_request_target: types: [opened, synchronize] permissions: