<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup" -->

---
title: GitHub Separates Who Writes Code From Who Runs Your CI
description: GitHub has made workflow execution protections generally available for GitHub Enterprise, organizations, and repositories, letting administrators control which...
canonical: https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GitHub Separates Who Writes Code From Who Runs Your CI | daily.dev
og:description: GitHub has made workflow execution protections generally available for GitHub Enterprise, organizations, and repositories, letting administrators control which...
og:url: https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup
og:image: https://api.daily.dev/og/posts/nkU4HdcUp.png
og:image:alt: GitHub Separates Who Writes Code From Who Runs Your CI
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 Separates Who Writes Code From Who Runs Your CI

**[DevOps.com](https://daily.dev/sources/devops)** · 6 min read · 0 upvotes · 0 comments

## Summary

GitHub has made workflow execution protections generally available for GitHub Enterprise, organizations, and repositories, letting administrators control which users, roles, bots, apps, and events can trigger Actions workflows. New in the GA release: rules can target individual workflow files, insights show how policies are evaluated, and a REST API supports policy-as-code. Evaluate mode lets teams preview what a rule would block before enforcing it. Critically, GitHub will enforce a default rule disabling pull_request_target on affected public repositories starting November 2, 2026, targeting workflows that check out untrusted fork code while holding secrets or write access. Teams are urged to audit .github/workflows now, using policy insights to spot at-risk workflows, especially AI code-review bots and labelers that read PR text with write tokens.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devops.com/github-separates-who-writes-code-from-who-runs-your-ci>

## Questions this post answers

### When does GitHub start enforcing the new pull_request_target default restriction?

Enforcement begins November 2, 2026, for public repositories that do not already have an event policy in place. A default rule disables the pull_request_target trigger on those repos. It runs in evaluate mode until then, and does not apply to private or internal repositories.

_daily.dev helps teams track upcoming GitHub Actions deadlines like this before enforcement hits._

### What is GitHub workflow execution protections in GitHub Actions?

It is a policy system, generally available since September 17, that lets administrators restrict which actors (users, repository roles, GitHub Apps, Copilot, Dependabot) and which events (push, pull_request, pull_request_target, workflow_dispatch) can trigger a workflow run. Rules can target specific workflow files, include insights for auditing, and expose a REST API for policy-as-code management.

_engineers hardening CI pipelines follow GitHub Actions security changes like this on daily.dev._

### Why is pull_request_target risky in GitHub Actions workflows?

It runs with the base repository's token and secrets, so if a workflow checks out code from an untrusted fork, an attacker's code can execute with those privileges. GitHub already updated actions/checkout v7 to refuse fetching fork pull request code in these workflows unless allow-unsafe-pr-checkout is explicitly set, and incidents like tj-actions/changed-files and Nx show attackers exploiting this pattern.

_teams auditing CI secrets exposure can follow supply-chain security coverage on daily.dev._

## Similar posts on daily.dev

- [Bot-created pull requests can run workflows if approved](https://daily.dev/posts/bot-created-pull-requests-can-run-workflows-if-approved-q7ziyqzrc) · GitHub Changelog · 0 upvotes · 0 comments
- [GitHub Agentic Workflows](https://daily.dev/posts/github-agentic-workflows-6xigduvrg) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#github](https://daily.dev/tags/github), [#cicd](https://daily.dev/tags/cicd), [#github-actions](https://daily.dev/tags/github-actions), [#supply-chain](https://daily.dev/tags/supply-chain), [#devsecops](https://daily.dev/tags/devsecops)

[View this post on daily.dev](https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup)

```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 Separates Who Writes Code From Who Runs Your CI","url":"https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup"},"datePublished":"2026-09-21T15:09:39.588Z","dateModified":"2026-09-21T15:20:03.094Z","description":"GitHub has made workflow execution protections generally available for GitHub Enterprise, organizations, and repositories, letting administrators control which...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef95a303265c7a52866dd6a7ced87d9d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef95a303265c7a52866dd6a7ced87d9d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DevOps.com","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":"DevOps.com","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/db8f2265cff0416c878c6e7e92bb8715","url":"https://daily.dev/sources/devops"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github,cicd,github-actions,supply-chain,devsecops","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevOps.com","item":"https://daily.dev/sources/devops"},{"@type":"ListItem","position":3,"name":"GitHub Separates Who Writes Code From Who Runs Your CI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/github-separates-who-writes-code-from-who-runs-your-ci-nku4hdcup#faq","mainEntity":[{"@type":"Question","name":"When does GitHub start enforcing the new pull_request_target default restriction?","acceptedAnswer":{"@type":"Answer","text":"Enforcement begins November 2, 2026, for public repositories that do not already have an event policy in place. A default rule disables the pull_request_target trigger on those repos. It runs in evaluate mode until then, and does not apply to private or internal repositories. daily.dev helps teams track upcoming GitHub Actions deadlines like this before enforcement hits."}},{"@type":"Question","name":"What is GitHub workflow execution protections in GitHub Actions?","acceptedAnswer":{"@type":"Answer","text":"It is a policy system, generally available since September 17, that lets administrators restrict which actors (users, repository roles, GitHub Apps, Copilot, Dependabot) and which events (push, pull_request, pull_request_target, workflow_dispatch) can trigger a workflow run. Rules can target specific workflow files, include insights for auditing, and expose a REST API for policy-as-code management. engineers hardening CI pipelines follow GitHub Actions security changes like this on daily.dev."}},{"@type":"Question","name":"Why is pull_request_target risky in GitHub Actions workflows?","acceptedAnswer":{"@type":"Answer","text":"It runs with the base repository's token and secrets, so if a workflow checks out code from an untrusted fork, an attacker's code can execute with those privileges. GitHub already updated actions/checkout v7 to refuse fetching fork pull request code in these workflows unless allow-unsafe-pr-checkout is explicitly set, and incidents like tj-actions/changed-files and Nx show attackers exploiting this pattern. teams auditing CI secrets exposure can follow supply-chain security coverage on daily.dev."}}]}
```

