DEVELOPER TOOLS · DATA FORMATS

GitHub adds user_id to usage reports December 1. Prepare CSV readers for the extra column.

The user_id announcement and an original, runnable offline CSV exercise for checking header-based reads before processing real exports.

Original diagram selecting net_amount by name when user_id is inserted between columns
Original diagram selecting net_amount by name when user_id is inserted between columnsOriginal image: TechTouch ↗

An extra column can turn an account identifier into an apparent money amount while a file still opens successfully. GitHub’s notice is a useful prompt to check whether a pipeline reads field meanings or merely remembers their positions.

The key points

  • Select columns by header name
  • Test synthetic files before real exports
  • Preserve identifiers as text without guessing identity

What GitHub announced

GitHub’s November 23 notice schedules user_id beside username for December 1, 2026: detailed, AI and premium-request reports, including REST exports; summarized reports stay unchanged. Scope: Enterprise Cloud and standalone Team organizations. IDs cover bots; unattributed usage stays blank. Deleted accounts split into separate rows; per-row rounding may slightly alter summed decimals. GitHub recommends header-based reading.

How an account number becomes an amount without an error

TechTouch example: use reduced headers username,net_amount and a row reader,1.25. An older reader selecting the second field gets 1.25. Change those headers to username,user_id,net_amount and the row to reader,901,1.25. The same reader now selects 901. A numeric conversion may accept it, leaving no error message to flag the mistake. These are invented values and a reduced teaching schema, not a complete export format.

TechTouch recommendation: build a name-to-position map from the header, then select net_amount by its name. Require each necessary header exactly once and check that every row has the same width as the header. Stop when that contract fails instead of converting an absent field to zero. Named selection tolerates extra columns, but does not itself validate currency, meaning or report scope.

REST exports do not establish an endpoint capability

The billing reference checked today still omits user_id and says /usage provides summarized information, not detailed reports. The announcement’s REST-export wording therefore does not establish detailed-report support for that endpoint.

TechTouch analysis: record the report name, export route or screen, generation date, reporting interval and observed headers together. Keep conclusions scoped to the relevant source when documents discuss different paths. That gives a future reviewer a way to distinguish a file problem from an API assumption without using an account to test this news report.

A runnable offline exercise with ten scenarios

Download github-usage-header-lab.mjs below, inspect its content, then run node github-usage-header-lab.mjs with Node.js. The file contains its parser and synthetic fixtures. It makes no network calls, reads no other files, writes no output files and needs no credentials. The editorial run passed ten synthetic scenarios; it was not a test of an actual GitHub export.

Successful scenarios cover legacy headers; an inserted ID; reordered headers with an unknown column; BOM/CRLF plus a quoted cell containing a comma, escaped quote and newline; several blank-name identity rows; and a large identifier with leading zeros. Four rejection scenarios cover a missing required header, duplicate headers, incorrect row width and an unclosed quote. The comparison table gives a compact interpretation of these checks.

This file is a reduced-schema lesson, not a production importer. Passing its fixtures cannot establish compatibility with every report version. A real integration still needs its own encoding, file-size, monetary-precision and export-route requirements checked.

A blank name is not a shared grouping key

TechTouch example: keep the fictional blank-name rows with IDs 901 and 902 separate. Preserve the unresolved state of a blank ID rather than inventing a common unknown account and grouping on it. An identifier alone also does not establish budget ownership, whether a record represents a person or bot, or present access rights.

TechTouch recommendation: retain IDs as text to preserve leading zeros and avoid numeric precision loss. The exercise also preserves net_amount as text and deliberately does not total amounts. Financial processing needs a decimal method appropriate to that system and retained row-level evidence. Do not alter source values simply to match an expected total.

An acceptance check before routine processing

TechTouch recommendation: agree on required fields, acceptance of extra headers and failure behavior before changing an importer. Keep authorized before-and-after samples, then check field selection, row counts and rejected inputs separately. Opening a CSV or passing a parser is still only one part of verifying a report.

Use a copy with personal information reduced for integration testing and avoid unnecessary uploads to public tools. Store fixture results with the importer version and let the report owner decide how to reconcile real amounts. This article did not request an export, send email, or change account or billing settings.

Details and limitations

Synthetic caseExpected resultFailure to catch
Legacy headersnet_amount is 1.25; absent ID is nullRequiring a new field in an old file
Added user_idAmount stays 1.25 although column two is 901Treating 901 as money by its position
Reordered plus unknown columnsNamed selections still find the valuesAssuming a fixed column order
Duplicate, missing or short fieldsStop with a clear reasonSilently filling missing amounts with zero

Things to know and check

  • Record report, export path, date and observed headers
  • Select by name; reject duplicate headers and incorrect row widths
  • Preserve source identifiers and amounts before conversion
  • Separate synthetic exercise results from real-report acceptance

Sources used for verification

Vendor facts are separated from TechTouch guidance. Features, pricing, and commercial terms may change, so check dates and conditions at the original source.

  1. GitHub Changelog · 23 Nov 2026
  2. GitHub Docs · Billing reports reference
Our editorial approach

Frequently asked questions

Does passing this lab establish that a real report is safe to import?

No. Its reduced schema and invented data require separate acceptance against authorized exports and the receiving system’s requirements.

Does the lab require a GitHub credential?

No. It runs its own embedded fixtures with Node.js, without networking or sign-in.

Copilot code review billing defaults