RepoOps
Open the app
06 / Cost

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.

Last updated

Watch it

30.0 s, captions on. Narration: Microsoft Zira Desktop (provisional voice; an approved narration source is pending).Transcript
Read the narration
  1. 0:00 The build bill moved.
  2. 0:01 The invoice names a total, never the job.
  3. 0:06 So measure each job, and round it up to the minute the way GitHub bills.
  4. 0:13 A matrix collapses into one row.
  5. 0:15 Eight shards read as one job, so the ranking stops hiding the dearest thing here.
  6. 0:23 This number is modeled, not billed, and the page says so above it.

Synthetic example. Read the guide

1

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

2

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.
3

Expected outcome

WorkedThe modeled banner, then tiles for modeled cost with billed minutes, per merged pull request, spend not attached to a pull request, and the sample.
WorkedBy-job and by-workflow tables sorted by modeled cost, both carrying failures.
WorkedOn a public repository every dollar figure reads zero, because standard runners are free there; minutes and job counts are still real.
Did not workThe card shows a connect box and no numbers.

Next step: No token is configured. Paste one, or set GITHUB_TOKEN and restart.

Did not workConnect says the token works but cannot read Actions on this repository.

Next step: Grant Actions: Read-only on that repository, or use a classic token with the repo scope.

Did not workCould not read CI spend, with a rate-limit reset time.

Next step: Lower the sample, or wait for the time named. The card draws no figure rather than zeroes.

Did not workStoring a token answers 501.

Next step: The server binds a public interface. Set REPOOPS_OPERATOR_CONFIRM_SECRET, or bind to localhost.

Did not workStoring a token says this machine asks for its operator confirmation.

Next step: Type it in the field under Connect and press Connect again. It is read when sent and never stored.

Did not workA 400 names a repository id nobody tracks.

Next step: Pick a tracked repository on the card, or call GET /api/ci-spend with an explicit owner/name.

4

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.