SIGN IN SIGN UP

Attach GitHub token only to configured GitHub hosts

BearerAuthTransport re-adds the Authorization header on every hop, which
defeats net/http's cross-host redirect stripping. Scope the credential to
the configured hosts so a redirect off them travels without the token.

An empty AllowedHosts preserves prior behavior; the three production
construction sites populate it from the configured REST, upload, GraphQL
and raw hosts.
S
Syed Anas Mohiuddin committed
198017fb54ba566d069afe13dda696b136405758
Parent: 505b88f
Committed by Sam Morrow <sammorrowdrums@github.com> on 8/18/2026, 10:02:40 PM