Interview Prep/CI/CD/GitHub Actions

Your Actions bill doubled. What do you audit?

IntermediateScenarioGitHub Actions
Answer

Situation read → Unbounded usage.

What I'd do →

  1. Review usage by repo and workflow (billing page or gh api /orgs/ORG/settings/billing/actions).
  2. Look for: runs triggered on every push to every branch, missing concurrency, huge matrices, missing timeout-minutes, macOS/Windows overuse, artifact retention.
  3. Set timeout-minutes on jobs, reduce retention-days, and move heavy workloads to self-hosted runners.

Why → Most waste comes from a few workflows.

Interview tip → Always set timeout-minutes; the default of 360 can burn hours on a hung job.

All CI/CD questions

More on GitHub Actions