microsoft / ghcrawler

Crawl GitHub APIs and store the discovered orgs, repos, commits, ...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authentication deprecation from GitHub

GregSutcliffe opened this issue · comments

I've been using GHCrawler for about a year with great success - thanks for the awesome tool :)

Today, I got a deprecation notice from Github when the crawler fired up to do some work:

Hi @GregSutcliffe,

On February 4th, 2020 at 14:02 (UTC) your personal access token (<redacted>) using ghrequestor was used as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/organizations/44586252

Please use the Authorization HTTP header instead, as using the `access_token` query parameter is deprecated.

Depending on your API usage, we'll be sending you this email reminder once every 3 days for each token and User-Agent used in API calls made on your behalf.
Just one URL that was accessed with a token and User-Agent combination will be listed in the email reminder, not all.

Visit https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters for more information.

Thanks,
The GitHub Team

I'm guessing that GHCrawler needs to be updated to handle the new authentication system. I'm happy to help test fixes, or even take a bash at it myself if you can point me in the right direction code-wise. Thanks!

Hi,
Anything we can do to help with this?