Hongdam หงส์ดำLINE

Automation · · 4 minutes to read

GitHub's pull_request_target block began at 22:45 UTC: blocked runs, green pull requests

GitHub เริ่มบล็อก pull_request_target เวลา 05:45 น. วันนี้: workflow ไม่รัน แต่ pull request ยังขึ้นเขียว

In 28 of 47 busy public repositories, workflows on this trigger stopped last night. In 15 of 16 pull requests we matched, the blocked run left no check; six of the 16 showed green.

pull_request_target is a GitHub Actions trigger: it starts a workflow (an automated job) when someone opens or changes a pull request, a proposed code change. Unlike the plain pull_request trigger, it runs with the repository's secrets and a token that can write, even when the proposal comes from a stranger's copy, a fork 2. Projects use it to label pull requests, check contributor agreements and post comments. Since 2 December GitHub blocks it by default in affected public repositories, unless an Actions policy allows it; private and internal repositories are not affected 1.

The first blocked run in our sample started at 22:45:12 UTC, 05:45 this morning in Thailand. At 23:43 UTC GitHub's own guide still said the rule "currently runs in evaluate mode" 2.

Eight in ten runs stopped within minutes

We took the 200 most-starred public repositories on GitHub with a push after 25 November, and read their pull_request_target runs from GitHub's API for 21:45 to 23:40 UTC on 2 December 2026. 47 of them had runs in the last 52 minutes of that window. The switch took about a minute and a half: the last run to get through in a repository that was then blocked started at 22:46:45.

22:48:06 to 23:40:08 UTCRepositoriesRunsBlocked runs
Every run blocked281,5811,581
No run blocked193370
Total471,9181,581
Share of pull_request_target runs blocked, by ten minutes (UTC)
22:300%
22:4029%
22:5082%
23:0081%
23:1076%
23:2089%
23:3087%
343 to 401 runs in each ten minutes, 200 most-starred active public repositories, 2 December 2026.

Two very busy repositories produced about two thirds of the blocked runs, so the repository count says more than the run count. The 28 include Next.js, Grafana, Supabase, React Native and Hugging Face Transformers. Why the other 19 still run is not visible from outside: reading a repository's policies returned 404 to us. An existing policy that allows the trigger is one explanation; GitHub also limits the rule to "affected" repositories 1.

The pull request does not show the block

A blocked run ends as startup_failure. On the run's own page, 25 of the 28 repositories' sampled runs carried GitHub's message that it restricts the trigger on public repositories by default; the other three pages showed the startup failure without a message.

The pull request is a different page. A check is the line with a tick or a cross at the bottom of a pull request. For 16 of the 28 repositories we could match a blocked run to a pull request whose latest commit it ran on. In 15 of the 16, the blocked run appeared nowhere among the checks. In the last one, Next.js, the run's entry showed one check that passed, "Docs Link Validation"; the blocked workflow labels pull requests.

GitHub's combined status for those 16 pull requests:

Combined statusPull requests
Success (green)6
Pending5
Failure5

So a pull request can be green while a workflow on it did not start. If that workflow adds a label, the label is missing. If it screens contributions, the screening did not happen. Among the blocked files in our sample are a contributor-agreement check and a security gate. We did not test a blocked workflow that a branch rule lists as a required check.

More than half of the blocked files contain no checkout

The danger GitHub describes is a workflow that fetches a stranger's code and then runs it with the secrets 2. We read 68 of the 69 blocked workflow files; one sits outside its repository. 37 contain no checkout step and no git fetch or gh pr checkout command at all. A text search cannot clear the other 31, and a file can also call a workflow stored elsewhere. By their names, many of the 69 are labellers, triage and comment bots.

Finding your blocked runs takes one command

With the GitHub command-line tool, gh, on a public repository (we ran this on Grafana's; it listed blocked runs):

gh run list -R OWNER/REPO --event pull_request_target \
  --status startup_failure --created '>=2026-12-02'

startup_failure also covers other faults, such as a broken workflow file; the run page gives the reason. Repository administrators also have the Policy insights page, under Actions in the settings, which lists blocked runs 5.

Two ways back

Change the trigger to pull_request when the workflow needs no secrets. For a fork it runs with a read-only token and without the other secrets 2, so tests and linting fit. A labeller that writes to the pull request does not.

Allow the trigger for one file when it needs to write and does not run the proposed code. In the repository: Settings, Actions, Policies 5. Or through the API, with a token that has Administration write permission 3:

gh api -X POST repos/OWNER/REPO/actions/policies \
  -H "X-GitHub-Api-Version: 2026-03-10" --input - <<'JSON'
{
  "name": "Allow pull_request_target for the labeller",
  "enforcement": "active",
  "conditions": {
    "workflow_path": {
      "include": [".github/workflows/labeler.yml"],
      "exclude": []
    }
  },
  "rules": [{
    "type": "restrict_action_events",
    "parameters": {"allowed_events": ["pull_request_target"]}
  }]
}
JSON

We wrote this from the API's field list 3 and have not run it. Two details decide what it does:

  • The event rule is an allowlist 4. A file that also starts on push or workflow_dispatch needs those names in allowed_events too.
  • Leaving out workflow_path targets every workflow in the repository 3. With only pull_request_target allowed, that would stop the ones that start on push.

GitHub adds its default policy to public repositories without an applicable event policy of their own 2. The pages we read do not say whether a policy for one file leaves the default in force for the rest. After saving one, the Policy insights page shows which runs are blocked 5.

Sources

  1. pull_request_target enforcement begins December 2 · GitHub Changelog github.blog
  2. Securely using pull_request_target · GitHub Docs docs.github.com
  3. REST API endpoints for GitHub Actions policies · GitHub Docs docs.github.com
  4. About Actions policies · GitHub Docs docs.github.com
  5. Governing execution of GitHub Actions workflows · GitHub Docs docs.github.com

Hongdam Studio services on this topic