Merge pull request #10527 from Roasbeef/fix-pr-severity-fork-prs

workflows/pr-severity: use pull_request_target for fork PRs
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2026-01-28 15:53:19 -04:00
commit 19b2ad7979
1 file changed
+4 -1
+4 -1
View File
@@ -1,7 +1,10 @@
name: PR Severity Classification
on:
pull_request:
# Use pull_request_target to allow running on fork PRs with access to secrets.
# This is safe because we don't checkout or execute any code from the PR -
# we only read PR metadata (changed files, labels) via the GitHub API.
pull_request_target:
types: [opened, synchronize, labeled]
permissions: