<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi" -->

---
title: GitHub will block pull_request_target workflows by...
description: GitHub will block the pull_request_target workflow trigger by default in public repositories starting December 2, 2026. The trigger can run workflows with...
canonical: https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub will block pull_request_target workflows by default in public repos on December 2, 2026 | daily.dev
og:description: GitHub will block the pull_request_target workflow trigger by default in public repositories starting December 2, 2026. The trigger can run workflows with...
og:url: https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi
og:image: https://api.daily.dev/og/posts/FpKnuscXI.png
og:image:alt: GitHub will block pull_request_target workflows by default in public repos on December 2, 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub will block pull_request_target workflows by default in public repos on December 2, 2026

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 2 upvotes · 0 comments

## Summary

GitHub will block the pull_request_target workflow trigger by default in public repositories starting December 2, 2026. The trigger can run workflows with access to secrets when a stranger opens a pull request, and issue_comment has the same risk with stranger comments. Three incidents show the danger: the Ultralytics attack in December 2024, the LiteLLM and Telnyx compromise in March 2026, and an April 2026 attack on elementary-data where a crafted PR comment got piped into a shell script. Feross calls it the right trade, comparing it to how npm v12 and pnpm 10 changed install script behavior. Team and Enterprise orgs can block the triggers org-wide with one policy; Free plan users must do it repo by repo. The Python Software Foundation already applied this policy across its psf, python, and pypi organizations.

## Content

Starting December 2, 2026, GitHub will block the `pull_request_target` trigger by default in public repositories. Some workflows that are perfectly safe will break. @feross thinks it's the right trade, the same one npm v12 and pnpm 10 made when they changed how install scripts run. I agree. Find your affected workflows before the date.

## Why the trigger is risky

`pull_request_target`, along with `issue_comment`, can run a workflow with access to secrets even when a stranger's pull request or comment kicked it off. That is a bad combination, and it has already caused damage:

- Ultralytics was attacked in December 2024.
- LiteLLM and Telnyx were compromised in March 2026.
- In April 2026, an attack on elementary-data used a crafted PR comment that was piped into a shell script.

## How to turn it off now

Organizations on GitHub Team or Enterprise plans can block these triggers across the whole org with a single policy. Free plan users have to do it repository by repository. Once you set your own event policy, the new default no longer applies to you.

The Python Software Foundation has already applied this policy across its psf, python, and pypi GitHub organizations.

## Related news from the Python world

The change was also flagged in episode #506 of a Python podcast, which covered a few other items:

- rqlite, a self-hosted SQL database that adds Raft consensus on top of SQLite for fault tolerance.
- diskcache-oxide, which now supports Django's cache framework without needing Redis.
- Muru, a Rust-based Python app server from Graham Dumpleton, the creator of mod_wsgi, built mostly with AI assistance.
- nginx2root, a set of five memory-corruption nginx bugs patched in versions 1.31.9 and 1.30.7. CVE-2026-123007 allows unauthenticated remote code execution, so update if you run nginx.

## Similar posts on daily.dev

- [Safer pull\_request\_target defaults for GitHub Actions checkout](https://daily.dev/posts/safer-pull-request-target-defaults-for-github-actions-checkout-cs5c6qtly) · GitHub Changelog · 0 upvotes · 0 comments
- [GitHub Separates Who Writes Code From Who Runs Your CI](https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup) · DevOps.com · 0 upvotes · 0 comments
- [GitHub Actions hardens checkout security to block ‘pwn request’ attacks](https://daily.dev/posts/github-actions-hardens-checkout-security-to-block-pwn-request-attacks-9pqi2ntb0) · InfoWorld · 0 upvotes · 0 comments
- [GitHub Actions is the weakest link](https://daily.dev/posts/github-actions-is-the-weakest-link-kx8cbboab) · Andrew Nesbitt · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#github](https://daily.dev/tags/github), [#github-actions](https://daily.dev/tags/github-actions), [#npm](https://daily.dev/tags/npm), [#devsecops](https://daily.dev/tags/devsecops)

[View this post on daily.dev](https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GitHub will block pull_request_target workflows by default in public repos on December 2, 2026","url":"https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi"},"datePublished":"2026-11-19T16:09:30.850Z","dateModified":"2026-11-25T07:53:16.751Z","description":"GitHub will block the pull_request_target workflow trigger by default in public repositories starting December 2, 2026. The trigger can run workflows with...","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github-will-block-pull-request-target-workflows-by-default-in-public-repos-on-december-2-2026-fpknuscxi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,github,github-actions,npm,devsecops","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"GitHub will block pull_request_target workflows by default in public repos on December 2, 2026"}]}
```

