Interview Prep/CI/CD/GitHub Actions

What is the difference between `runs-on: ubuntu-latest` and a pinned version like `ubuntu-24.04`?

BeginnerConceptGitHub Actions
Answer

ubuntu-latest is an alias GitHub moves to the newest stable Ubuntu image over time, which can suddenly change toolchains and break builds. A pinned label (ubuntu-24.04) stays on that image until it is deprecated, giving predictable upgrades that you control. For stable CI, pin and bump deliberately.

All CI/CD questions

More on GitHub Actions