You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2021. It is now read-only.
Use AppBearerTokenAuth in login_as_app_installation
Previously, this method used an Authorization header via `headers`
parameter, instead of an AuthBase instance via the `auth` parameter.
But the requests library has this behavior where it will try
to pick up authentication credentials from ~/.netrc if neither
session nor request has an associated AuthBase object. (A sole
Authorization header will not prevent this behavior.)
Since all of github3.py uses AuthBase instances to
authenticate, but login_as_app_installation didn't, this makes
for an incredibly difficult issue to debug, since the latter
is the only place in which the issue can manifest, if a user's
~/.netrc has an entry for api.github.com.
By using AppBearerTokenAuth, this can no longer happen, since
the ~/.netrc path is not hit any more.
0 commit comments