From 2 December, GitHub will refuse workflows in public projects that start with pull_request_target
The trigger was at the root of several attacks on Python packages, and the Python Software Foundation has already adjusted its own projects.
From 2 December, GitHub Actions will by default block the pull_request_target trigger in public repositories. The Python Software Foundation (PSF) and several developer blogs report this. According to Superdev Academy and htek.dev, the measure was announced in a GitHub changelog of 2 November for that same day and was postponed by a month. On 9 and 16 November there were already two-hour trial windows in which affected workflows stopped with an error. Private and internal repositories and GitHub Enterprise Server are not covered.
The difference from the ordinary pull_request trigger is large, the PSF explains. The latter runs code from a fork with a read-only token and without secrets. With pull_request_target, the workflow gets write access and access to the project's secrets. That is intended for tasks such as labelling contributions, but becomes dangerous as soon as the workflow runs the code from the pull request itself. The PSF also points to issue_comment, which lets anyone start a workflow by posting a comment.
The PSF lists incidents that started this way. At Ultralytics, a workflow with this trigger led to malicious releases on PyPI in December 2024. The compromise of LiteLLM and Telnyx in March 2026 traced back, via a compromised dependency, Trivy, to such a workflow. At elementary-data, a crafted comment in April was enough to obtain a token with write access. The PSF's security staff removed the risky triggers in the psf, python and pypi organisations and put policies in place there.
Those who genuinely need the trigger can allow it again, according to htek.dev, through an Actions event policy limited to specific workflow files. Those who do not need secrets are better off switching to pull_request. Team and Enterprise customers can arrange this for an entire organisation in one go, while free accounts have to do it repository by repository.