Menu

Post image 1
Post image 2
1 / 2
0

GitHub App installation tokens are getting longer in May 2026 — your VARCHAR(40) column is about to silently truncate them

DEV Community·FlareCanary·27 days ago
#E1qn6FD5
#why#github#api#token#tokens#length
Reading 0:00
15s threshold

GitHub announced on April 24, 2026 that installation access tokens for GitHub Apps are changing format . Starting with a brownout mid-May 2026 and full cutover by late June 2026, tokens will grow from the current 40 characters ( ghs_ + 36 chars) to up to roughly 520 characters. The prefix stays ghs_ . The character set stays the same. Only the length changes — and only upward, and only sometimes. That last part is the trap. During and after the rollout, some tokens will still be 40 chars (issued before the change, cached, returned by older Enterprise Server versions) and some will be 200, 380, 520. The same App, same installation, same call, on different days returns different lengths. There's no transition flag. There's no version header. The token still parses as bytes. It just doesn't fit anywhere you assumed it would. The four shapes of the failure # All four of these silently corrupt or reject valid tokens after May 2026. # 1. Database column too narrow.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More