Your Actions bill doubled. What do you audit?
IntermediateScenarioGitHub Actions
Answer
Situation read → Unbounded usage.
What I'd do →
- Review usage by repo and workflow (billing page or
gh api /orgs/ORG/settings/billing/actions). - Look for: runs triggered on every push to every branch, missing
concurrency, huge matrices, missingtimeout-minutes, macOS/Windows overuse, artifact retention. - Set
timeout-minuteson jobs, reduceretention-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.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate