Skip to content

GitHub Actions blocks pull_request_target by default from today

Public repos on GitHub Free, Team and Enterprise Cloud now need an explicit Actions event policy to run pull_request_target workflows, closing a fork-secret-theft route.

Source: GitHub

GitHub Actions now blocks the pull_request_target event by default in public repositories on GitHub Free, Team and Enterprise Cloud, as of today, 2 December. A workflow using that trigger only runs if an Actions event policy explicitly allows it. Private repos, internal repos and GitHub Enterprise Server are unaffected.

pull_request_target runs a workflow in the base repository’s context, with access to its secrets, when someone opens a pull request from a fork. GitHub’s own wording is direct: “If a workflow executes untrusted code from a fork, that code could compromise your pipeline or steal secrets.” Enforcement was originally meant to land a month earlier, on 2 November, but GitHub pushed it back to today. Two brownout windows on 9 and 16 November gave maintainers a preview: blocked workflows failed with error annotations instead of running.

# allow a specific workflow through the default block
# Settings → Actions → General → Actions event policies

Why it matters: if your public repo has a workflow that depends on pull_request_target, for example to label or comment on fork PRs, it stopped running today unless you already added a policy allowing it. Check Insights for blocked runs now rather than finding out when a release workflow silently stops firing.

The caveat: this only touches public repos on the plans GitHub names. If you’re on GitHub Enterprise Server or a private repo, nothing changes.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)