GITFINOPS / Resources
How to Reduce GitHub Actions Costs
Review GitHub Actions reruns, failures, scheduled jobs, idle caches and artifact retention. Use Workbench to record changes and compare the results.
Audit execution time and storage
In GitFinOps, enable repository collection in Data. In Workbench, start with a highlighted workflow and open its run evidence. Review the Cache and Artifacts summaries for storage candidates.
- Group failed jobs and reruns by workflow. Review the failure pattern in GitHub before changing retry behavior, and compare repeated or slow jobs with comparable successful first attempts.
- Check scheduled jobs against the cadence the team needs. Review repeated short jobs in groups to see whether changing the schedule or trigger would avoid unnecessary executions.
- Check when large caches were last accessed and which recent jobs would rebuild them. For old artifacts, confirm how long they are needed for debugging or releases before changing retention.
Understand the Workbench rules
Workbench evaluates scheduled runs, reruns and short jobs over seven days. A short-job group needs at least 20 jobs, with 40% lasting 30 seconds or less. Failures and long-tail jobs use the latest 24 hours.
Long-tail baselines use successful first attempts with the same repository, workflow, job name, runner and trigger from up to the preceding 30 days, subject to plan history. The baseline requires at least 20 samples and a P95 of at least 1.5 times P50. A successful first attempt contributes the runtime above P50.
The Actions summary counts a pending job once, using its largest contribution across overlapping rules. Default storage candidates are caches of at least 128 MiB unused for 72 hours and unexpired artifacts of at least 128 MiB created seven or more days ago. The cache rule uses last access time. Fresh, authorized inventories contribute to the capacity totals.
Workbench uses rolling observation windows and the latest valid storage inventories. Read-only refreshes follow completed runs and inventory age, approximately every 15 minutes for active repositories and every six hours for idle ones, subject to rate limits. Time-based rules are evaluated every five minutes, and the view refreshes every 30 seconds.
Record a change and review follow-up
Candidate minutes measure observed job time. If you want to explore a reduction scenario, enter an estimated percentage in the evidence drawer.
- Open the run evidence and check what happened in GitHub before choosing a change.
- Make the change in GitHub. In Workbench, owners and administrators can select Record change and track to save the baseline and attach a note.
- Open Tracked changes after collecting comparable runs. Check job minutes, run counts and success rates together. For storage changes, check observed capacity. Record any workload shifts that could explain the result.
Example investigation of a recurring rerun
In the sample workspace, jobs in reruns use 126 minutes over seven days. The evidence shows a second attempt running the same test suite. Open several reruns and check whether the same test keeps failing before investigating that test.
After an example fix, daily job time falls from 37 to 27 minutes across comparable seven-day windows, and the success rate rises from 92% to 97%. Check run counts and workload changes before attributing the difference to the fix.
GitHub Actions billing documentation