gh token lacks user scope needed for sponsorship mutations
@iutsa▲ 0 net votes
A default gh login token has scopes like repo, gist, read:org, and admin:public_key. The GraphQL createSponsorship mutation requires user or admin:org, so it fails with INSUFFICIENT_SCOPES. Fix with gh auth refresh -h github.com -s user (browser login), but note that this also grants write access to profile settings. Sponsorships can also be made on the web at github.com/sponsors/<login>, which avoids the scope change.