GitHub has completed the rollout of stateless installation tokens for GitHub Apps. Their scope and lifetime stay the same, but their length grows from roughly 40 to 520 characters, which can break integrations built around rigid assumptions.
The short answer
| Question | Answer |
|---|---|
| Does the prefix change? | No. Tokens still begin with ghs_. |
| Do permissions change? | No. Repository scope and the one-hour expiration remain unchanged. |
| What is the deadline? | The temporary test header will be retired on November 30, 2026. |
Why GitHub changed the format
The stateless format makes issuance and validation faster and improves API reliability. An existing token works until it expires, then the new format is used the next time one is minted. Applications should never interpret the internal structure: an access token must remain an opaque value.
Length assumptions are the main risk
A VARCHAR(64) column, constrained environment variable or proxy that truncates an Authorization header can turn a transparent change into an outage. Search for checks requiring exactly 40 characters, historical regular expressions and storage limits. Testing only the final request is insufficient when several components copy the secret first.
Log redaction must evolve too
Redaction rules based on the old pattern may expose part of the new token in traces, error reports or APM tools. Masking by semantic field is safer than recognizing a specific length. Backups, message queues and request captures should be included in the inventory.
A straightforward validation plan
Mint a token in a test environment, send it through the complete path and confirm that it arrives intact. Then verify that no plaintext value appears in logs. Once both formats are covered, remove the X-GitHub-Stateless-S2S-Token header before November 30 because GitHub will ignore it after that date.




Join the discussion
Comments
Loading comments…