Price your build pipeline by job
CI spend lists a repository's completed GitHub Actions runs over a window, measures every job from its own start and finish times, rounds each job up to the whole minute the way GitHub bills, and prices the minutes from a rate table, so you can name the job that moved the bill. The figure is modeled, not billed, and the card says so above the number.
Watch it
Read the narration
- 0:00 The build bill moved.
- 0:01 The invoice names a total, never the job.
- 0:06 So measure each job, and round it up to the minute the way GitHub bills.
- 0:13 A matrix collapses into one row.
- 0:15 Eight shards read as one job, so the ranking stops hiding the dearest thing here.
- 0:23 This number is modeled, not billed, and the page says so above it.
Synthetic example. Read the guide
How to
A repository on GitHub Actions, tracked by the desktop app.
A GitHub token that can read Actions on that repository: a classic token with the repo scope, or a fine-grained or App token granted Actions: Read-only on that repository.
- Open Cost, then the Overview tab.
CI spend is a card on the Overview, read when the tab first shows. Pick the repository above it. An old link to the CI spend page opens here with its repository.
- Connect GitHub.
In the card that reads Connect GitHub to read CI spend, paste the token and press Connect. It is checked against this repository's own Actions endpoint before it is stored, and a refusal says which of three things went wrong: the token is dead, the repository is not visible, or the token cannot read Actions there. A GITHUB_TOKEN in the app's environment wins over a stored token and needs no connect.
- Choose the window and the sample.
The window picker offers 7, 30 and 90 days, and the sample picker 50, 150 and 300 runs. Each sampled run costs one extra request for its jobs, so the sample is a rate-limit budget. The totals are scaled to the window, and the Sample tile shows the sample, the runs in the window and the multiplier.
- Read the banner, then the warnings.
These dollars are modeled, not billed sits above the tiles. A runner label outside the rate table turns the total into a floor and names the label; jobs with no usable start or finish time are reported as uncounted rather than free.
- Read the by-job table.
Rows are sorted by modeled cost and carry the workflow, minutes, job runs and failures. A matrix collapses into one row with its job-run count, so eight shards read as the one expensive thing they are.
- Read Per merged pull request beside Not attached to a pull request.
Per merged pull request divides spend on pull-request runs by the pull requests that merged in the window; pull requests still open or abandoned raise it. Pushes to the default branch and scheduled runs sit in Not attached to a pull request. Both are the sample as measured, not scaled.
Use cases
The bill moved and nobody can name the job
- Situation
- A private repository's Actions spend is up, the workflow list looks the same, and the run count is about flat.
- You do
- Open the Overview, leave the window at 30 days and the sample at 150 runs, and read the by-job table first.
- You see
- The jobs ranked against each other by modeled cost, with a matrix held as one row. It is a ranking from a stated model, not a reconciliation of the invoice.
What a merged pull request costs to ship
- Situation
- Someone asks what one shipped change costs in build minutes, and a nightly workflow runs on the same repository.
- You do
- Read the Per merged pull request and Not attached to a pull request tiles together.
- You see
- A per-change figure that never absorbs the nightly spend. With nothing merged in the sample the tile reads none merged and says why, rather than dividing by zero.
Expected outcome
Next step: No token is configured. Paste one, or set GITHUB_TOKEN and restart.
Next step: Grant Actions: Read-only on that repository, or use a classic token with the repo scope.
Next step: Lower the sample, or wait for the time named. The card draws no figure rather than zeroes.
Next step: The server binds a public interface. Set REPOOPS_OPERATOR_CONFIRM_SECRET, or bind to localhost.
Next step: Type it in the field under Connect and press Connect again. It is read when sent and never stored.
Next step: Pick a tracked repository on the card, or call GET /api/ci-spend with an explicit owner/name.
What else to consider
Why it measures instead of reading a bill
GitHub retired the billing endpoint for a user-owned account, which answers 410, and the per-run timing endpoint answers zeros. So CI spend prices minutes at 0.008 US dollars for Ubuntu, 0.016 for Windows and 0.08 for macOS. Plan-included minutes are not deducted, larger and self-hosted runners are priced at their standard operating-system rate, and the window caps at 90 days because GitHub ages older runs out of the API.
The account's Actions bill
The billed Actions amount for an account a GitHub connector names appears on the hosted Cost page, under Hosting and model spend. The per-job read runs only in the desktop app, on your machine with your token; on repoops.ai, /team/ci-spend opens the Cost page.
Data, egress and cost
Nothing about the pipeline is written to disk: a read is held in memory for ten minutes, and the card reads again only when you change the repository, window or sample. The only thing stored is the token, in the operating system keychain (Windows DPAPI, the macOS Keychain or the Linux Secret Service), never in plain text; no endpoint returns it, and the card sees a masked hint. Where no keychain is available the connect box refuses and says why, and the GITHUB_TOKEN environment variable still works. Requests go to the GitHub API from this machine only, each with a 20-second timeout. No model call is made. Disconnect removes the stored token; revoke the token itself in your GitHub settings.