Learning center

The runner image changed between two runs. Is the old green still evidence?

A job with runs-on: ubuntu-latest can get a different operating system and tool set from one week to the next. An older green run tested your code with tools that the next run may no longer have. Each job's "Set up job" log names the image and its version. Compare that record across the two runs before you treat an old pass as current, and name an exact image label when the result has to stay reproducible.

Why the label does not fix the image#

ubuntu-latest is a label that the runner-images project moves. Its README says the -latest migration "is gradual and happens over 1-2 months", that a workflow using the label "may see changes in the OS version", and that users can avoid it by naming a specific OS version. Images under one label also change: "Images are updated on a weekly cadence." actions/runner-images

The latest move was announced in the Ubuntu 26.04 migration notice: ubuntu-latest moved to Ubuntu 26.04 between 19 October and 19 November 2026. The notice's comparison table lists, among other changes, a default Java move from 17 to 25 and a kernel move from 6.17 to 7.0.

Two runs of one workflow, one label#

These are the image records of two public runs of the same workflow file, whose jobs both say runs-on: ubuntu-latest, three days apart:

[…]
run 42303611517 2026-11-06T22:17:56Z a1f2b45ce5a3 .github/workflows/check-migrations.yml […] runs-on: ubuntu-latest
Ubuntu
24.04.5
LTS
Image: ubuntu-24.04
Version: 20261101.360.1
[…]
run 42592187358 2026-11-09T09:16:55Z 6a8248f13fe7 .github/workflows/check-migrations.yml […] runs-on: ubuntu-latest
Ubuntu
26.04.1
LTS
Image: ubuntu-26.04
Version: 20261101.186.1
[…]

Both jobs ran the same runs-on line; the label had moved to a new OS between them. Both version strings start with the same build date, so the date alone does not tell two images apart; the image name and the full version do.

Read the image of your run#

The lines sit in the "Operating System" and "Runner Image" groups of the job's first step:

gh api repos/OWNER/REPO/actions/jobs/JOB_ID/logs \
  | sed -n '/Operating System/,/endgroup/p;/Runner Image$/,/endgroup/p'

The "Runner Image" group also prints an "Included Software" link to the README for that exact image version, which lists the tool versions it carried. Keep the version string; the label alone does not identify the image.

What a different image can and cannot explain#

ObservationPossible causesRecord that settles it
Old run passes, new run fails, same commitNew image, flaky test, or a moved action tagImage version in both logs; the action SHA lines in "Set up job"
Old and new runs both pass on different imagesYour code does not depend on what changed, or no test exercises itThe included-software lists, then a test that pins the tool version
Same image version, different resultNot the imageLook at inputs: commit, action SHAs, caches, services

The image is one input among several. A different image version makes it a candidate; it does not prove it caused the failure. Rerun the old commit on the new image to separate the two.

Pin when the result must hold#

Name the OS version, ubuntu-24.04 or ubuntu-26.04, and install the tools the tests depend on at a fixed version in the workflow. A named OS label still receives weekly image updates, so the version string in the log remains the record of what ran.

This example uses public run records; see an action's tag moved after your run for the other input the workflow file does not fix. Return to handing over evidence.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading