Skip to content

ci: remove pull_request_target trigger from release-drafter#406

Open
ryantm wants to merge 1 commit into
mainfrom
ryantm/remove-pr-target-release-drafter
Open

ci: remove pull_request_target trigger from release-drafter#406
ryantm wants to merge 1 commit into
mainfrom
ryantm/remove-pr-target-release-drafter

Conversation

@ryantm
Copy link
Copy Markdown
Collaborator

@ryantm ryantm commented May 12, 2026

Why

The recent TanStack NPM supply-chain compromise postmortem describes how an attacker exploited a pull_request_target workflow to exfiltrate secrets via a PR from a fork. Per security policy, we're removing pull_request_target triggers from all Replit-owned public repos as a precaution — even where the current use looks safe — to eliminate exposure to that attack pattern.

Slack thread: https://replit.slack.com/archives/C03FS477T17/p1778588219046429

What changed

Deleted the pull_request_target trigger block from .github/workflows/release-drafter.yml. No other changes.

Trade-off: the release-drafter autolabeler will no longer run on PRs opened from forks. Release notes are still drafted on push to main, and the autolabeler still runs on PRs from branches inside this repo via the existing pull_request trigger.

Test plan

  • Diff is one workflow file, three lines removed (the pull_request_target: key, its types: list, and the preceding explanatory comment).
  • release-drafter.yml remains syntactically valid YAML with the push: branches: [main] and pull_request: triggers intact, so the workflow continues to run on merges to main and on internal PRs.

Revertibility

Safe to revert — single workflow file, no schema or data changes. Re-adding the trigger block restores prior behavior.

~ written by Zerg 👾 (mutated-hydralisk-73a8)

Removes the pull_request_target event trigger from release-drafter to
eliminate exposure of the supply-chain-attack pattern exploited in the
TanStack NPM compromise. See:
https://tanstack.com/blog/npm-supply-chain-compromise-postmortem

Autolabeler will no longer run on PRs from forks; release notes are
still drafted on push to main.
@ryantm ryantm added the zergling-authored Authored by Zerg label May 12, 2026
@ryantm ryantm marked this pull request as ready for review May 12, 2026 15:20
@ryantm ryantm requested a review from a team as a code owner May 12, 2026 15:20
@ryantm ryantm requested review from poorvapotnis and removed request for a team May 12, 2026 15:20
@ryantm ryantm enabled auto-merge (squash) May 12, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zergling-authored Authored by Zerg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant