Article

Update GitHub AI usage imports before December 1

For finance and platform teams, identify affected GitHub reports, update CSV and Excel imports, and check account attribution before December 1.

Editorial illustration for Update GitHub AI usage imports before December 1: a document represents the research briefing. Not documentary evidence.

Finance and platform teams reading GitHub usage files by column position need to update their imports before December 1, 2026. GitHub’s November 23 notice says a user_id column will be inserted after username, shifting later columns. Map fields by their header names—the labels in a CSV file’s first row—instead.

Which GitHub reports need an import check?

The change covers detailed, AI and premium-request reports, including REST-generated exports, across all Enterprise Cloud account types and standalone Team organizations. Summarized reports are unchanged. These are the boundaries in GitHub’s announcement.

Inventory the scripts, Excel queries, business-intelligence dashboards and warehouse jobs that consume those files. Record the billed account, report type, download route and downstream owner. Check the actual file: “we use the API” does not identify which data format your importer receives.

  • Downloaded files: owners and billing managers can obtain reports for their enterprise or Team organization. Under Metered usage or AI usage, choose Get usage report, specify the details, then Email me the report. Save the file, not just the emailed link, which expires after 24 hours. GitHub’s download instructions explain access.

  • Automated enterprise exports: POST /enterprises/{enterprise}/settings/billing/reports creates an export asynchronously. Check its status through GET /enterprises/{enterprise}/settings/billing/reports/{report_id} and use download_urls once completed; HTTP 202 means the request was accepted. The export API reference lists the permissions and report types.

  • Direct JSON responses: the separate billing usage endpoints, such as /settings/billing/usage/summary and /settings/billing/ai_credit/usage, return structured data rather than these exported CSV files. Do not apply a column-position patch to a JSON consumer merely because both routes are called reports.

Fix the source reader before the spreadsheet formulas

For scripts, use a CSV parser that takes names from the file itself. In Python, csv.DictReader uses the first row as headers when fieldnames is omitted. Passing a hard-coded list of old headers defeats that protection. Reject duplicate headers, missing fields required for that report type, inconsistent row widths and invalid money values; do not silently turn missing amounts into zero.

For Excel or Power BI queries using Power Query, inspect the Csv.Document source step first. Microsoft documents that a fixed Columns count smaller than the input can discard additional columns. Remove the obsolete fixed count where appropriate so the input determines its width, then validate the expected headers.

Next, promote the first row to headers and review column selection, renaming, type conversion and spreadsheet formulas. Keep user_id as text in the spreadsheet. A source step that already dropped a field cannot be repaired by naming columns later; that is why both stages need inspection.

Keep account identity separate from usage rows

GitHub says the ID will cover bots, remain useful after username changes and distinguish deleted accounts. Accountless usage will have an empty ID. Deleted accounts will get separate rows. See the identity changes.

For the import, preserve three distinct situations:

  • ID present: retain it for account matching, with username as a display label. Include the billing scope when joining to internal ownership records.

  • ID column present, cell empty: keep the usage without inventing a person to own it. Do not drop the row from spending totals.

  • ID column absent: record that this file lacks the field. Keep this distinguishable from an empty cell in the new layout; do not guess an ID from a name alone.

An account ID is not a unique usage-row key: preserve the dates, products and other dimensions needed by the report. Before allocating spend to departments, check that joining ownership records neither duplicates nor drops usage.

Also retain app_client_id where supplied. In AI reports, GitHub defines it alongside organization to identify app usage billed to an organization. It is a different attribution field, not a replacement for the account ID.

Check both layouts before switching the import

Recommended preparation: keep an untouched current export, then create a clearly labelled synthetic test copy with the announced column insertion. This checks your importer’s assumptions; it is not a sample of GitHub’s final export format.

  • Give neighbouring fields visibly different values so a shift cannot pass unnoticed. Check named values after loading, not just whether the job finishes.

  • Include illustrative cases for a renamed account, two deleted accounts with different IDs, a bot and accountless usage. Check that each retains its intended attribution.

  • Load the saved old-format file too. Confirm that adding support for the new field does not break historical imports, and that malformed rows are flagged rather than accepted silently.

Choose the layout from the header, not the usage date. The notice does not settle how older periods regenerated after rollout will be formatted. Keep original files and record which transformation produced each downstream report.

Reconcile attribution as well as the total

Preserve monetary precision during the import, then compare loaded values with the source file. Compare compatible totals for the same payer, products, filters and UTC period. The billing field reference defines net_amount as gross_amount minus discount_amount; detailed and AI reports cover up to 31 days, while summarized reports can cover a year. Do not compare unlike windows.

GitHub’s reporting tutorial recommends consistent reporting levels, filters and time ranges. Its billing endpoint rules also exclude organization-funded Copilot use from personal-account endpoints. For teams with mixed funding, the guide to Copilot CLI access and Microsoft 365 billing helps separate that billing question from this CSV migration.

GitHub says its amount calculation stays the same, but rounding across separate deleted-account rows may produce small differences in summed totals. The notice does not announce a price increase or specify a universal tolerance. Investigate unexplained differences rather than classifying every discrepancy as rounding.

The practical acceptance check has two parts: correct spending totals and correct allocation. A matching grand total can still conceal a department charged for another account’s usage. Keep unresolved attribution visible instead of forcing it into a named team.

Check the first live export after rollout

GitHub has not specified a cutover hour or time zone, so finish preparation before the stated date. On the first export after rollout, inspect the actual header, check sample field mappings and reconcile before refreshing finance dashboards. If validation fails, hold that refresh and preserve the file for diagnosis.

Once imports are reliable, teams investigating repeated agent spending can separately review GitHub issue triggers and duplicate agent-run costs. That is a workflow-cost task, not part of this report-format change.