Skip to content

Opt into GitHub's stateless installation access tokens - #72

Merged
nresare merged 1 commit into
mainfrom
github-stateless-s2s-token
Sep 24, 2026
Merged

nresare merged 1 commit into
mainfrom
github-stateless-s2s-token

Conversation

@nresare

@nresare nresare commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • GitHub is rolling out a new JWT-format (ghs_-prefixed) installation access token and lets callers opt in per-request during the rollout via the X-GitHub-Stateless-S2S-Token header (changelog).
  • Adds that header (set to enabled) to idcat's installation access token request in src/github.rs.
  • No other changes were needed: idcat already treats the response token field as an opaque String with no hardcoded length assumptions, no format-validating regex, and no fixed-width storage column to expand.

Test plan

  • cargo build
  • cargo test github:: (existing suite, unchanged behavior expected/observed)
  • cargo fmt --check
  • cargo clippy --all-targets

GitHub is rolling out a new JWT-format (ghs_-prefixed) installation
access token and lets callers opt in per-request via the
X-GitHub-Stateless-S2S-Token header during the rollout. idcat already
treats the returned token as an opaque string with no length
assumptions or format validation, so send the header to get ahead of
the format change.

See https://github.blog/changelog/2026-05-15-github-app-installation-tokens-per-request-override-header/
@nresare
nresare merged commit 7548741 into main Sep 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant