Skip to main content

GitHub savings checks

GitHub opportunities in Cost Savings come from six CloudYali rules. They read your connected organizations' billed usage, Copilot seats, codespaces, Actions retention setting and Advanced Security committers. GitHub itself publishes no savings recommendations for CloudYali to read.

How the checks run​

The rules run once a day, at the end of the daily GitHub sync, and not after Sync now. Their opportunities reach Cost Savings with its daily refresh, at about 15:00 UTC.

Each rule judges the measured month: the last complete calendar month. Until the 8th of a month, it is the month before last, because the daily sync still reads the last month's final days again. Amounts come from your own billed lines for that month, net of GitHub's discounts.

Every rule's data needs a permission on the token; see Connect GitHub. When a sync cannot read a rule's data, the rule keeps its earlier findings for that organization. The connection's health note then says Savings findings were kept as they were where this run did not read their data and names what was missed.

Savings and insights​

Some GitHub opportunities are insights: they show $0.00 of monthly savings. An insight appears in the list and counts as an opportunity, but adds nothing to Potential Monthly Savings and has nothing to record as Realized Savings. Its details still explain the finding and give the runbook.

A finding is an insight for one of three reasons:

  • GitHub cannot release the cost yet. GitHub bills an Advanced Security committer until 90 days after their last push, so no licence can be removed now.
  • The billing lines are not verified. CloudYali has not yet checked GitHub's Copilot seat and AI-credit lines against a live account, so idle seats claim $0.
  • An input is assumed. When a figure the saving rests on came from a default or a list price instead of your own data, the finding claims $0 rather than a guess.

The figure CloudYali worked out for an insight is not shown, so it never reaches a total.

The six rules​

RuleFindsMonthly savingsEffort · risk
Idle Copilot seatA user with no Copilot activity for 30 days in every seat they hold$0 today: an insightLow · low
Actions runner mixA repository that spent $50 or more on macOS or Windows runners that have a Linux equivalentThe price difference to LinuxMedium · medium
Actions artifact and log retentionAn organization whose Actions storage cost $25 or more, keeping artifacts and logs longer than 30 daysThe storage a 30-day retention would not keepLow · medium
Idle codespacesCodespaces billed to the organization that nobody started for 30 days and GitHub will not delete within 7 daysTheir share of the repository's Codespaces storageLow · medium
Unused Codespaces prebuildsA repository with $10 or more of prebuild storage and no codespace created from a prebuildThe whole prebuild storageMedium · low
Inactive Advanced Security committersCommitters GitHub still bills for Secret Protection or Code Security who have not pushed for 30 daysAlways $0: an insightMedium · medium

The opportunity's account is the organization. The resource is the seat's login, the repository or the organization.

Idle Copilot seat​

A user is idle when every seat they hold, through any organization or team, shows no activity for 30 days, or none at all for a seat older than 30 days. A seat already pending cancellation is not counted.

  • Savings. $0 until GitHub's seat billing is verified. CloudYali works out the saving against last month's AI-credit pool: a removed seat saves its price only as far as the pool had credits to spare.
  • Access seats. A seat on GitHub's access plan always claims $0. An organization connection cannot tell whether it costs $0 or up to the Copilot Standalone price, and only an enterprise owner can remove it.
  • Caveats. GitHub records Copilot activity only through IDE telemetry, up to 24 hours late. A removed seat is billed to the end of the billing cycle.
  • Runbook. Remove the user from the organization or team assignment that grants the seat.

The title names the login only, such as Remove idle Copilot seat — LOGIN. The details list each assignment and its last activity.

Actions runner mix​

The rule adds up a repository's macOS and Windows runner minutes for the measured month. When they cost $50 or more net, it prices the minutes that have a Linux runner with the same architecture and number of cores.

  • Savings. The net you paid, times one minus the ratio of the Linux list price to the current runner's list price.
  • Not priced. GPU runners, macOS larger runners and the 3-core arm64 macOS runner have no Linux equivalent, so they save nothing. They still count toward the $50.
  • Caveat. The saving assumes every job can move. Only jobs that need neither macOS nor Windows can.
  • Runbook. Change runs-on in the workflows that can move, after a compatibility checklist.

Actions artifact and log retention​

The rule reads the organization's retention setting for artifacts and logs. When the measured month's Actions storage cost $25 or more net and the setting keeps them longer than 30 days, it finds the storage a 30-day setting would not keep.

  • Savings. The storage cost times one minus 30 divided by the retention in days. A 90-day retention saves two thirds of the storage.
  • Insight. When the token cannot read the setting, CloudYali assumes GitHub's 90-day default and claims $0. Grant Administration: read to read it.
  • Caveat. Storage builds up over time, so the saving arrives as older artifacts age out.
  • Runbook. Set retention-days on the largest uploads first, then a shorter retention for single repositories, and the organization's setting last.
caution

Since 1 October 2026, GitHub's retention setting also deletes checks, workflow runs and commit statuses, third-party ones included, for objects created after the change. Check that no audit relies on them before you shorten it.

Idle codespaces​

A codespace is idle when nobody has started it for 30 days and GitHub will not delete it in the next 7 days, because it is kept or has a long retention. Only codespaces billed to the organization count.

  • Savings. GitHub bills Codespaces storage per repository, not per codespace. Each idle codespace takes a share of the repository's storage cost by disk size, at most what its disk holds over the month. A finding needs $1 or more.
  • Insight. When GitHub's lines for the repository give no price per GB-hour, the cap uses GitHub's list price, and the finding claims $0.
  • Caveat. Deleting a codespace deletes any work in it that was not pushed. Check with each owner.
  • Runbook. List the repository's idle codespaces from GitHub, then delete them with gh codespace delete.

The details list each idle codespace's owner and dates. The title and runbook name none of them.

Unused Codespaces prebuilds​

The rule flags a repository whose prebuild storage cost $10 or more net, when no codespace GitHub lists for it was, or may have been, created from a prebuild.

  • Savings. The whole prebuild storage. The Actions minutes the prebuild workflows use are not counted, so the saving is understated.
  • Insight. When the list shows no codespace of the repository billed to the organization, and the month billed it no Codespaces storage, the finding claims $0. Its codespaces may all be billed to their users and use the prebuilds.
  • Runbook. Delete the repository's prebuild configurations under its Settings → Codespaces, or build them in fewer regions and keep fewer versions.

Inactive Advanced Security committers​

GitHub bills Secret Protection and Code Security, or the combined Advanced Security licence, for every committer who pushed to a repository with the product turned on in the last 90 days. The rule lists the committers whose last push is 30 days old or more.

  • Savings. Always $0. An inactive committer stops counting 90 days after their last push, without you doing anything.
  • Current monthly cost. Their share of the month's Advanced Security cost, at the average per committer.
  • Runbook. How GitHub counts committers, a gh api listing of who it counts, and where the products are turned on: the organization's Settings → Advanced Security → Global settings and Configurations pages.

The details list each inactive committer's login and last push day. CloudYali never reads their push email.

When findings close​

A finding the rules no longer produce becomes No longer detected after the next Cost Savings refresh. When you pause or remove a GitHub connection, its findings close the same way.

Limits​

  • Idle seats claim $0. Every idle Copilot seat is an insight until GitHub's seat billing is verified. Use the seat count and the runbook, not the amount.
  • One month at a time. Every rule judges the last complete month, so a change you make shows in the next month's findings.
  • Codespaces billed to users. The idle codespaces rule judges only codespaces billed to the organization.
  • Organizations only. Enterprise connections, and the enterprise-wide Copilot pool, are not available yet.