Skip to content

The publication for web craftspeople Tuesday, 3 November 2026

DevOps & servers

GitHub Actions Blocks pull_request_target by Default: Deadline Pushed to December 2

GitHub has pushed back to December 2, 2026 the default blocking of pull_request_target workflows on public repositories, originally set for November 2. The move targets workflows that expose base-repository secrets to untrusted code from a fork.

On November 2, 2026, GitHub announced it is pushing back to December 2 the default
blocking of workflows triggered by pull_request_target on public repositories.
The deadline, originally set a month earlier, gives teams more time to audit their pipelines
before the platform cuts off by default a trigger regularly tied to leaked secrets. The change
applies to the GitHub Free, Team and Enterprise Cloud plans, and is part of a wider set of
governance changes GitHub has rolled out this autumn.

What changes on December 2

Starting December 2, 2026, GitHub Actions will block pull_request_target
events by default on every public repository, unless an Actions event policy explicitly
allows them. Private and internal repositories are not affected by this switch, nor are
GitHub Enterprise Server instances.

Why this trigger worries GitHub

Unlike pull_request, the pull_request_target trigger runs the
workflow in the context of the base repository rather than the contributor’s fork.

This trigger runs in the context of the base repository and can access its secrets.

A poorly built workflow that checks out and executes fork code without care exposes the
base repository’s tokens and secrets to untrusted code. This is the exact pattern, documented
for years in CI/CD security reports, that GitHub is targeting with this default block.

Who is affected, and who isn’t

ScopeStatus
Public repositories, Free / Team / Enterprise Cloud plansBlocked by default starting December 2
Private and internal repositoriesNot affected
GitHub Enterprise ServerNot affected
Workflows with an explicit event policyKeep running normally

Transition timeline

DateEvent
Before November 9, 2026Recommended window to audit workflows via Insights
November 9, 2026, 16:00-18:00 UTCFirst “brownout”: blocking applied temporarily as a test
November 16, 2026, 16:00-18:00 UTCSecond “brownout”
Between the test windowsEvaluation mode: workflows run, with warnings
December 2, 2026Default blocking enforced permanently

During the two brownout windows, affected runs fail with an explicit error annotation,
making it possible to pinpoint exactly which workflows need fixing before the final deadline.

How to respond before the deadline

Teams that legitimately rely on pull_request_target, for instance to post a
comment on a pull request from a fork without ever executing its code, can explicitly allow it
through an Actions event policy targeting the relevant workflow files — in the same spirit as
the recent fine-tuning of CI cache access:

name: comment-on-fork-pr
on:
  pull_request_target:
    types: [opened, synchronize]

permissions:
  pull-requests: write

jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      # No checkout of the fork's code: only the API is used.
      - name: Post a comment
        uses: actions/github-script@v7
        with:
          script: |
            github.rest.issues.createComment({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.payload.pull_request.number,
              body: "Thanks for this contribution."
            })

The risk isn’t the trigger itself, but checking out a fork’s code and then running it
(installing dependencies, building, testing) within that same job. An event policy lets teams
keep using pull_request_target for uses that never execute third-party code,
without reopening the hole GitHub is trying to close — the same discipline required by
a WordPress site’s minimal security baseline.

Key takeaways

The default blocking of pull_request_target on public repositories has been
pushed back a month, to December 2, 2026. Open source maintainers have until November 9 to
audit their workflows via Insights, then until November 16 to watch the two test windows
before the final switch. An Actions event policy lets legitimate uses of the trigger continue
without reintroducing the risk of leaked secrets.

This kind of default change, imposed after the fact on thousands of existing repositories,
is always a useful signal: if a platform has to cut off a default behavior to protect users
from themselves, it means the dangerous pattern was already widespread. On the projects he
maintains, the author never waits for this kind of imposed deadline to audit CI/CD workflows:
secret leaks through a booby-trapped fork remain one of the most underrated attack vectors in
open source repositories — Simon Janvier.

Further reading: the full announcement on the
GitHub changelog.

Read next