~/til / commit 6c19b6a

GitHub App tokens are about 520 characters now, and some security tools will miss them

GitHub App installation tokens still start with ghs_, but they’re no longer 40 characters. They’re now a ghs_ prefix, the app ID and a JWT, about 520 characters, with dots in them. That includes the GITHUB_TOKEN every Actions run gets.

Anything that recognises tokens by shape breaks quietly: secret scanners, log redaction, DLP rules, a database column sized for 40 characters. A pattern like ghs_[A-Za-z0-9]{36} no longer matches, so the token sails through your redaction into the logs. Treat tokens as opaque strings, and if you must match them, use ghs_[A-Za-z0-9._]{36,}.