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
This commit is contained in:
Smit Barmase authored and GitHub committed 2026-03-19 12:16:27 +05:30
1 parent 8b533dc7e4
commit 1b972d2cc9
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@
name: PR Size Check
on:
pull_request:
pull_request_target:
types: [opened, synchronize]
permissions: