Starting December 2, 2026, GitHub Actions will block pull_request_target events by default in all public repositories, unless an Actions event policy explicitly allows them. GitHub announced it on November 2, with brownouts on November 9 and 16. Five days earlier, on October 28, workflow dependency lockfiles reached general availability, according to InfoQ.
Both are real improvements. Neither covers your private repositories, and neither stops a stolen token from pushing a branch. Here is what changes, how to audit for it, and what can still reach an AWS role after December 2.
What changes on December 2
pull_request_target runs in the context of the base repository, not the fork, so it can reach the base repository's secrets. It is meant for jobs like labeling or commenting on pull requests from forks. The classic mistake is to check out the fork's code inside that trusted context and build it. GitHub's secure use guide warns that such workflows may have write access and secrets, and that these bugs can lead to a full repository takeover. Its events reference says to avoid the event if you need to build or run code from the pull request.
From the changelog:
- Scope: public repositories on GitHub Free, Team and Enterprise Cloud. Private and internal repositories are not affected, and GitHub Enterprise Server is not included.
- Default rule: blocks the event unless an Actions event policy allows it. You can allow it for specific workflows through workflow file targeting.
- Brownouts: November 9 and November 16, 16:00 to 18:00 UTC. Blocked runs fail with an error annotation. Between brownouts the rule is in evaluate mode, and workflows run with warnings.
- Recommended prep: use Insights to see which runs would be blocked.
Lockfiles, briefly
A lockfile at .github/workflows/actions.lock records the exact commit for every action your workflows use, including the actions those actions depend on. Tags can move. Locked commits do not. The gh actions-lock CLI extension creates and verifies it, and admins can turn on a "Require lockfile" policy, InfoQ reports.
GitHub's documentation lists the limits:
- Reusable workflows are not pinned. Calls through
jobs.<job_id>.usesmust still use a full commit SHA. - It covers only action code. Not inputs, not secrets, not the runner image.
- It does not judge the code. It guarantees the run uses the locked commit, not that the commit is safe. InfoQ points out that when Dependabot updates an action, it updates the lockfile in the same pull request, so that pull request becomes the review point. Auto-merge it and a bad release flows straight into the lockfile.
What still reaches an AWS role after December 2
The December 2 change removes one trigger in one kind of repository. The path from untrusted code to a cloud role has several other doors.
- Private, internal and Enterprise Server repositories. Nothing changes there. If you use
pull_request_targetin a private repository that accepts forks, the old risk stays. workflow_run. GitHub's reference says the triggered workflow "is able to access secrets and write tokens", even when the workflow that triggered it could not. The common pattern is an unprivileged workflow that builds a pull request, then a privilegedworkflow_runworkflow that downloads its artifacts and acts on them. If the second one trusts what the first one produced, untrusted code can steer a privileged job. GitHub names cache poisoning as a specific risk.issue_comment. It runs the workflow file from the default branch whenever someone comments. A "/test" or "/deploy" bot that then checks out the pull request's head is the same pattern under a different name.- A stolen token and a push. The Gheist campaign did not use forks at all. It pushed branches with stolen tokens, and in private repositories Wiz saw the victims' own workflows assume AWS roles from those branches.
- Workflows you allow back in. An event policy that re-enables
pull_request_targetfor a workflow restores the old behavior for that workflow.
On AWS, all five end at the same place: the IAM role trust policy for GitHub's OIDC provider. Events like pull_request_target, workflow_run and issue_comment run with the default branch as their ref. So a trust policy that only checks for main may not tell a privileged job triggered by an outsider apart from a normal push to main. Pinning deploy roles to a GitHub environment with required reviewers gives you a check that a trigger alone cannot satisfy.
The audit checklist
Before December 2:
- Search every repository for
pull_request_target,workflow_runandissue_comment. Do it for private repositories too. - For each hit, answer three questions. Does it check out or run code from the pull request? What
permissionsdoes its token get? Which secrets and which AWS roles can it reach? - Open Actions Insights for public repositories and see which runs the new rule would block. If a workflow genuinely needs the trigger, allow only that file, and make sure it never builds fork code.
- Move build-and-test of fork code to plain
pull_request. Secrets are not passed to fork pull requests there, andGITHUB_TOKENis read-only.
Lockfiles:
- Onboard workflows to
actions.lock, starting with the ones that can reach secrets or deploy. - Run the extension's verify mode in CI, and turn on "Require lockfile" once coverage is complete.
- Pin reusable workflows by full commit SHA, since the lockfile does not cover them.
- Turn off auto-merge for Dependabot pull requests that change actions.
AWS side:
- List every role that trusts
token.actions.githubusercontent.com. For each, note thesubcondition and the policies attached. - Replace repository-wide wildcards with an environment or a protected branch. Keep the role used by pull request checks read-only and separate from the deploy role.
- Watch
AssumeRoleWithWebIdentityin CloudTrail for subjects you do not expect.
The short version
December 2 closes a well-known door in public repositories. Many teams keep their production pipelines in private repositories, where that door stays as it was, and where several other doors lead to the same room.
Mapping those doors is the kind of work Antivenom does. Our AI red team runs only against your own systems, with your permission, and tests which triggers and branches can reach which roles. The AI blue team narrows the trust and the workflow, and the red team retests the path to prove it is closed. For how this played out in a live campaign, read Gheist: stolen GitHub tokens and the AWS roles that said yes.