Interview Prep/GitHub Actions/Pipeline Design & Triggers

Builds must be reproducible: the same commit should produce the same pipeline behaviour next month. What do you pin?

IntermediateScenarioPipeline Design & Triggers
Answer

Situation read → Drift comes from runner images, actions, tool versions and dependencies.

What I'd do →

  1. runs-on: ubuntu-24.04 (not latest).
  2. Actions pinned to SHAs with Dependabot updates.
  3. Tool versions explicit: node-version-file: .nvmrc, terraform_version: 1.9.8, kubectl via azure/setup-kubectl with version: v1.31.2.
  4. Lockfiles with npm ci, pip install --require-hashes.
  5. Base images pinned by digest in Dockerfiles.

Why → "Nothing changed but CI broke" is almost always one of these floating.

Interview tip → Mention that hosted runner images update weekly; preinstalled tool versions are not a contract.

All GitHub Actions questions Roadmap: GitHub Actions

More on Pipeline Design & Triggers