GitHub Actions deploy failing? December 2 blocks pull_request_target, and ubuntu-latest is now Ubuntu 26.04
If your AI-built app deploys through GitHub Actions (a .github/workflows folder that Cursor, Claude Code, Bolt or a template added), three GitHub changes from this autumn can turn it red with no change to your code. The newest one starts on December 2, 2026. This guide shows which one hit you, how to unblock today, and what to tell your AI agent, without opening your repo's secrets to strangers.
What changed, and when
| Date | Change | Who is hit | What you see |
|---|---|---|---|
| Sep 23, 2026 | Node 20 removed from runners. JavaScript actions now run on Node 24. | Workflows that use old action versions | Warnings in the run summary, or a step that fails in a new way |
| Oct 19 – Nov 19, 2026 | ubuntu-latest moved from Ubuntu 24.04 to Ubuntu 26.04 | Every job with runs-on: ubuntu-latest that doesn't set its own tool versions | A build or test that passed last month now fails, and nobody changed the code |
| Dec 2, 2026 | pull_request_target blocked by default in public repos | Public repos with a workflow on that trigger (often labelers, comment bots, AI review bots, previews for outside pull requests) | A failed run with an error annotation, and the workflow doesn't execute |
| Mar 23 – Apr 17, 2027 | ubuntu-22.04 brownouts on March 23 and 30 and April 6 and 13 (from 14:00 UTC), then retired on April 17 | Jobs with runs-on: ubuntu-22.04 | Jobs fail only in those windows, then always |
Sources: GitHub Changelog pull_request_target blocked by default December 2, Ubuntu 26 generally available and latest migration, Node 20 is no longer available in GitHub Actions and runner-images #14254, checked November 26, 2026.
Which one hit me? Check in three minutes
- Open the Actions tab of your repo on GitHub. Find the first red run and note its date. Red since late October or November with no code change usually means Ubuntu 26.04. Red from December 2 on a pull request event means
pull_request_target. - Open the
.github/workflowsfolder and search each file forpull_request_target,ubuntu-latestandubuntu-22.04. No workflow folder means none of this affects you. - Check if the repo is public (the label next to its name). The December 2 block applies only to public repos. Private repos keep running
pull_request_target. - Read the failed step's log. A wrong Node or Python version, a missing tool, or
apt-key: command not foundpoints to Ubuntu 26.04.
ubuntu-latest broke the build: unblock first, then fix it properly
The new image ships newer defaults. From GitHub's own image lists (November 16 builds):
| Tool | Ubuntu 24.04 | Ubuntu 26.04 |
|---|---|---|
| Node.js | 22 | 24 |
| npm | 10 | 11 |
| Python | 3.12 | 3.14 |
| PostgreSQL | 16 | 18 |
| Java (default) | 17 | 25 |
- Unblock today: change
runs-on: ubuntu-latesttoruns-on: ubuntu-24.04in the failing job. GitHub gives this as the way back. Your deploy goes green again while you fix the cause. - Fix the cause: set the versions yourself instead of trusting the image. Add a setup step such as
actions/setup-nodewith the same Node version your host runs, oractions/setup-pythonwith your Python version. Then the next image change can't surprise you. - Use the version your host uses. If you deploy to Vercel, Netlify or Render, the build there has its own Node setting. Make the workflow match it, or tests pass in Actions and fail at the host (see our Vercel Node.js guide).
jobs:
build:
runs-on: ubuntu-24.04 # was: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22 # the version your host runs
Ubuntu 24.04 is supported for now, so pinning it is safe today. Plan the move to 26.04 once your versions are set.
December 2: pull_request_target is blocked in public repos
A workflow on pull_request_target runs with your repo's secrets and a token that can write. GitHub blocks it by default because a workflow that runs code from an outsider's pull request can leak those secrets. Before you turn it back on, decide which case you're in:
- The workflow doesn't need secrets or write access (it only builds or tests the pull request): switch the trigger to
pull_request. That runs safely for outside pull requests. - It needs them, and it never checks out or runs the pull request's code (labels, comments, triage): allow it narrowly. In the repo, open Settings → Actions → Policies, create a policy, target only that workflow file, allow the
pull_request_targetevent, and set it to Active. Use Evaluate mode first if you want to see what it would do. - You don't know what it does, or nobody uses it: leave the block in place. A blocked bot is better than leaked keys.
GitHub's warning, in short: only allow pull_request_target when it's needed, and never let that workflow check out, build or run code from an untrusted pull request. If an AI agent wrote the workflow and it uses actions/checkout with the pull request's ref, treat it as unsafe and ask for a review before allowing it.
Old action versions after Node 20
GitHub updated the newest versions of its own actions (checkout, setup-node, upload-artifact and others) to Node 24. Older versions still run, now on Node 24, and GitHub says they may not work as expected. If a step warns about Node 20 or fails oddly, update its uses: line to the latest major version listed on the action's GitHub page. To stop this from piling up, ask your agent to add a .github/dependabot.yml entry for the github-actions ecosystem, so GitHub opens a pull request when an action has a new version.
Prompt for your AI agent
My GitHub Actions workflow fails. Fix only the workflow files in .github/workflows. 1) List every workflow, its trigger (on:), its runs-on value and each uses: line with its version. Show me the list before changing anything. 2) For jobs on ubuntu-latest that fail: set runs-on: ubuntu-24.04 for now and add setup steps that pin Node (same version as my host) or Python explicitly. 3) If a workflow uses pull_request_target: tell me if it checks out or runs code from the pull request. Do NOT allow or keep it if it does. Suggest pull_request instead when no secrets are needed. 4) Update outdated actions to their latest major version. Don't pin to a commit you can't name, and don't touch app code, secrets or deploy targets. 5) Show me the diff, then tell me how to re-run the job to verify.
Never paste access tokens, deploy passwords or secret values into the chat. GitHub keeps them in Settings → Secrets; the agent only needs their names.
Check that it really works again
- Open the fixed run in the Actions tab and confirm every step is green, including the deploy step, not only the build.
- Open your live site in a private window and check that your latest change is there.
- For a
pull_request_targetpolicy: open a small test pull request and check that the bot does only its job (a label or a comment) and nothing else.
FAQ
Does the December 2 change affect private repos?
No. GitHub blocks pull_request_target by default only in public repositories. Private and internal repositories keep running it. Your ubuntu-latest and Node 24 changes apply to both.
My deploy broke in November and I changed nothing. Why?
Most likely the ubuntu-latest label moved your job to Ubuntu 26.04 between October 19 and November 19, 2026, with newer Node, npm, Python and other defaults. Set runs-on to ubuntu-24.04 to unblock, then pin your tool versions in the workflow.
Is it safe to just allow pull_request_target again?
Only if the workflow never checks out, builds or runs code from the pull request. Allow it for that one workflow file in Settings, Actions, Policies, not for the whole repo. If you're not sure what the workflow does, leave it blocked.
Will pinning ubuntu-24.04 break later?
Not soon. GitHub supports the two latest Ubuntu versions, and 24.04 is one of them today. The next retirement on the calendar is ubuntu-22.04 on April 17, 2027. Pin to unblock, then set your versions so moving to 26.04 is easy.