GitHub published a changelog entry at 16:43Z on October 21 letting GitHub CLI users opt in to OAuth tokens that expire and refresh automatically, rather than persisting indefinitely. The entry frames this as a security-hardening option for command-line authentication, available to anyone willing to turn it on. It is not. Reported write-ups of the LiteLLM incident describe an attacker who appeared to use stolen GitHub CLI OAuth tokens to gain access, the kind of long-lived credential that, once exfiltrated, keeps working until someone manually revokes it. That reporting is unconfirmed in detail, but it supplies the context that makes a quiet opt-in feature worth a second look from anyone who manages developer tooling.
For product and design leads, the decision is not whether expiring tokens are good practice. They are. The decision is whether to force the migration or let it sit as a checkbox in settings that most engineers will never find. GitHub's own announcement describes this as opt-in, meaning the default CLI experience for existing and new users remains the long-lived token model that reportedly figured into the LiteLLM compromise. Teams that treat this as resolved because GitHub shipped a fix will be wrong. Teams that audit which of their CI pipelines, scripts, and developer machines still carry non-expiring tokens will find out how much exposure survives the announcement.
The mechanism matters here. A non-expiring OAuth token is valuable to an attacker precisely because it does not require repeated authentication; once copied from a developer's machine, a config file, or a leaked log, it functions as a standing credential until someone notices and revokes it by hand. Auto-refreshing, expiring tokens shrink that window by design: a stolen token that expires in hours or days is worth far less than one that never expires. But opt-in features depend on adoption, and adoption depends on whether engineering leadership treats this as a default to enforce across an organization's GitHub CLI usage or as a recommendation to mention in a wiki page nobody rereads.
GitHub's changelog does not say how many users have enabled the option, whether it will become the default in a future release, or whether the company plans to deprecate the long-lived token path entirely. It also does not confirm the LiteLLM attack chain in detail; that account comes from incident write-ups outside GitHub's own announcement, and the two sources should be read separately. What is confirmed is narrower: the feature exists, it is optional, and it was published one day before this analysis, on October 21.
The open questions are operational, not theoretical. Security and platform leads should check whether their CI systems, bots, and scripts that call the GitHub CLI are candidates for the new flow, since automation often re-authenticates rarely and therefore benefits most from short-lived tokens. They should also check whether their token inventory includes forgotten long-lived credentials tied to departed employees or decommissioned services, the exact gap that incident reports suggest adversaries exploit. GitHub has made the tool available. Whether an organization's tokens expire by December, or still don't, is a decision sitting on someone's backlog right now.