VibeRescue · Blog

GitHub Actions deploy failing? December 2 blocks pull_request_target, and ubuntu-latest is now Ubuntu 26.04

November 26, 2026 · 7 min read

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

DateChangeWho is hitWhat you see
Sep 23, 2026Node 20 removed from runners. JavaScript actions now run on Node 24.Workflows that use old action versionsWarnings in the run summary, or a step that fails in a new way
Oct 19 – Nov 19, 2026ubuntu-latest moved from Ubuntu 24.04 to Ubuntu 26.04Every job with runs-on: ubuntu-latest that doesn't set its own tool versionsA build or test that passed last month now fails, and nobody changed the code
Dec 2, 2026pull_request_target blocked by default in public reposPublic 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, 2027ubuntu-22.04 brownouts on March 23 and 30 and April 6 and 13 (from 14:00 UTC), then retired on April 17Jobs with runs-on: ubuntu-22.04Jobs 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

  1. 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.
  2. Open the .github/workflows folder and search each file for pull_request_target, ubuntu-latest and ubuntu-22.04. No workflow folder means none of this affects you.
  3. 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.
  4. Read the failed step's log. A wrong Node or Python version, a missing tool, or apt-key: command not found points 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):

ToolUbuntu 24.04Ubuntu 26.04
Node.js2224
npm1011
Python3.123.14
PostgreSQL1618
Java (default)1725
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:

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

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.

Want a free health check?

Paste a public GitHub repo into /check/ for the dated platform checks, or into the free Rescue Scan to classify the problem type. Both run in your browser; nothing is stored.

Run the free monthly checks → Run the free Rescue Scan →