Merge pull request #1975 from glifocat/chore/label-pr-fork-support

fix(workflows): label PRs from forks that follow the contributing template
This commit is contained in:
gavrielc
2026-04-24 15:26:34 +03:00
committed by GitHub

View File

@@ -1,7 +1,12 @@
name: Label PR
# SECURITY: this workflow runs with write access to the base repo on fork PRs,
# because `pull_request_target` executes in the context of the base branch.
# Keep it metadata-only — do NOT add actions/checkout or any step that
# executes PR-supplied content (install scripts, build commands, etc.).
# See https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/
on:
pull_request:
pull_request_target:
types: [opened, edited]
jobs: