Guides · Checked on 28 November 2026
How can I reduce my GitHub Actions bill?
Open GitHub’s detailed usage report and group it by workflow path and SKU. Start with the largest net charge: runner compute calls for a different fix than artifact storage.
Fix the workflow behind the charge
In Billing → Metered usage, download the detailed report. Sort by
net_amount, notgross_amount: the latter includes usage your allowance covered.If developers only need to read the test result, write it to the job summary. The Go example keeps the output in the log too. Save an artifact only if someone needs the file.
Tested on 28 November 2026
The test job passed in 9 seconds on checklane-2vcpu. GitHub reported zero uploaded artifacts. The same test had previously passed but failed at the upload step because the organization was out of artifact storage.
Show the workflow YAML
name: Test results without an artifact
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: checklane-2vcpu
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod
cache: false
- shell: bash
run: go test -count=1 ./... | tee -a "$GITHUB_STEP_SUMMARY"
For files you do need, set retention-days on new uploads. Deleting old files won’t undo storage charges already accrued.
Related guide: How do I cut GitHub Actions costs on pull requests?
Frequently asked questions
Does deleting old artifacts remove storage charges I’ve already accrued?
No. GitHub counts how much storage you use each hour. Deleting an artifact stops future usage for that file, but the hours it was stored still count.
GitHub: how storage billing worksWhy do two jobs of the same length cost different amounts?
GitHub’s hosted runner rates vary by operating system, size and CPU architecture. Check the billing SKU for each job before comparing the minutes.
GitHub: Actions runner pricingAre GitHub’s larger runners free for public repositories?
Standard GitHub-hosted runners are free for public repositories. Larger runners are billed even when the repository is public.
GitHub: Actions billingRun this job on Checklane
For a compute charge, compare per-second runner pricing. Moving runners won’t shorten the retention period on artifacts uploaded to GitHub.
Connect your repository, then set the job’s runner label:
runs-on: checklane