Skip to content

ci: delete all pull_request_target workflows#2823

Open
bhimrazy wants to merge 1 commit into
Lightning-AI:mainfrom
bhimrazy:drop-pr-target-workflows
Open

ci: delete all pull_request_target workflows#2823
bhimrazy wants to merge 1 commit into
Lightning-AI:mainfrom
bhimrazy:drop-pr-target-workflows

Conversation

@bhimrazy

Copy link
Copy Markdown

What does this PR do?

Removes GitHub Actions workflows that used the pull_request_target event:

Workflow Purpose
labeler.yml Label PRs by changed files
label-conflicts.yml Label PRs with "has conflicts"

pull_request_target runs with full repo secrets and write permissions even for fork PRs — this is the exact vector exploited in the TanStack npm supply chain attack, which cascaded to hundreds of downstream packages. The files are fully recoverable from git history if they need to be reimplemented safely later.

Follows the same cleanup done in Lightning-AI/pytorch-lightning#21721.

Drop `label-conflicts.yml` and `labeler.yml` which used the
`pull_request_target` trigger. See Lightning-AI/pytorch-lightning#21721.
@github-actions github-actions Bot added the ci label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants