GitHub Rolls Out Stateless App Installation Tokens

Daily Code Guide GitHub News

GitHub has completed the rollout of stateless GitHub App installation tokens. The change affects the format and handling requirements for newly issued tokens, but it does not change their documented permissions, repository scoping, endpoint, or one-hour expiration.

That distinction matters for developers and platform administrators. A token that was once commonly handled as a short, 40-character value may now be approximately 520 characters long. Applications that validate token length, enforce legacy patterns, limit database fields, truncate authorization headers, or redact only the older format may need compatibility updates.

What changed in GitHub App installation tokens

The staged rollout began on April 27, 2026, and was complete as of October 2, 2026. Newly minted installation tokens use the ghs_APPID_JWT format by default and retain the ghs_ prefix. GitHub describes the new values as approximately 520 characters long rather than 40 characters.

The format change is intended to improve performance and API reliability by making token issuance and validation faster. GitHub has not documented the internal structure or cryptographic contents implied by the ghs_APPID_JWT label, so applications should treat the value as an opaque credential rather than parsing it.

The GitHub rollout announcement says that installation-token permissions, repository scoping, expiration, and the installation-token REST endpoint remain unchanged. Existing tokens also continue to work until they expire, which means systems may encounter both legacy and stateless formats during the transition.

Ad

What remains the same

GitHub Apps still obtain an installation access token by sending a request to:

POST /app/installations/INSTALLATION_ID/access_tokens

The request uses the app JWT in the Authorization header. The GitHub installation-token guide documents repository and permission restrictions for the generated token. Repository access can be narrowed to selected repositories, with the supplied guide stating that up to 500 repositories can be listed, and permissions can be restricted within the permissions granted to the installation and the app.

The generated installation token remains valid for one hour. It can be used for REST and GraphQL API requests and, when the app has the required Contents permission, for HTTP-based Git access. The GitHub App authentication documentation also describes renewing tokens as they expire.

In other words, this is primarily a compatibility and infrastructure-handling change. The supplied documentation does not establish a change to authorization semantics, repository access rules, or token lifetime.

Where integrations may break

GitHub specifically calls out several areas that developers should review:

  • Validation: Remove exact-length checks and validation rules that accept only legacy token patterns.
  • Storage: Confirm that database columns, secret stores, environment variables, and related fields can accommodate a value of approximately 520 characters. GitHub describes the length as approximate, not as a guaranteed fixed size.
  • Headers: Check proxies, gateways, middleware, and HTTP clients for authorization-header truncation or rejection caused by longer credentials.
  • Logging and redaction: Update secret-detection and log-scrubbing rules that recognize only the legacy token format.
  • Mixed-format operation: Test workflows with both older and newly issued tokens while previously minted credentials remain valid.

These checks apply even when the application itself does not inspect token contents. A downstream database limit, gateway policy, or logging rule can fail before the token reaches GitHub or expose a credential unintentionally.

What administrators and developers should do

  1. Audit code and configuration for assumptions that an installation token is exactly 40 characters long or matches only a legacy pattern.
  2. Trace the token’s full path through issuance, storage, environment injection, request construction, proxies, gateways, and application middleware.
  3. Increase capacity where necessary, while continuing to handle tokens as opaque strings rather than depending on the approximate length.
  4. Review authorization-header handling for truncation, maximum-size restrictions, and rejection behavior.
  5. Update logging, monitoring, and secret-redaction patterns so both legacy and stateless token formats are protected.
  6. Exercise token renewal and API access with both formats during the period when older tokens may still be active.
  7. Use the documented REST flow or an appropriate Octokit authentication flow to generate and renew installation tokens.

The supplied Octokit auth-app.js documentation describes installation-token authentication, caching, and renewal as tokens approach their 60-minute validity period. The supplied sources do not identify a minimum Octokit, auth-app.js, or other SDK version required specifically for stateless tokens, so teams should not assume that a particular version is mandatory based on this rollout alone.

Temporary override ends November 30

GitHub says the temporary X-GitHub-Stateless-S2S-Token request header will stop being respected on November 30, 2026. After that date, eligible apps will receive stateless installation tokens.

Teams that use this header should remove it from production code before the deadline. The supplied evidence identifies the header but does not document its exact syntax or accepted values, so it should not be added or configured based on assumptions about how it works. GitHub’s available documentation also does not define additional regional, environment-specific, or app-specific eligibility conditions beyond the general rollout statements.

Availability and security considerations

The completed rollout applies by default to newly minted GitHub App installation tokens according to the supplied GitHub documentation and changelog. Tokens created before the change remain usable until expiration, so a short period of mixed token formats is expected.

GitHub presents the stateless format as a performance and reliability change, not as a vulnerability disclosure or a new security guarantee. Installation tokens should continue to be treated as sensitive, opaque credentials. Longer values make storage, transport, logging, and redaction reviews more important, but the supplied sources do not establish new cryptographic properties or a security mitigation associated with the format.

For most applications, the safest implementation approach is straightforward: request tokens through the existing installation-token flow, pass them through as opaque strings, avoid format-dependent validation, and ensure every component handling the Authorization header accepts the longer value.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Ad
Ad
Ad