nicokosi / hubstats

🧪 Command-line for GitHub pull request statistics
5 stars 0 forks source link

Fix GitHub API deprecation notice for authentication via URL query parameters #48

Closed nicokosi closed 3 years ago

nicokosi commented 3 years ago

Prevent this kind of email notification by GitHub:

On February 27th, 2021 at 15:37 (UTC) your personal access token (Compute statistics via https://github.com/nicokosi/hubstats) using Java/11.0.5 was used as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/repositories/7420643/events

Please use the Authorization HTTP header instead, as using the `access_token` query parameter is deprecated. If this token is being used by an app you don't have control over, be aware that it may stop working as a result of this deprecation.

Depending on your API usage, we'll be sending you this email reminder on a monthly basis 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/2020-02-10-deprecating-auth-through-query-param for more information about suggested workarounds and removal dates.

Thanks,
The GitHub Team
nicokosi commented 3 years ago

Already done in pullpitoK: see commit https://github.com/nicokosi/pullpitoK/commit/69adeb7d81aac93bbf2debc79c9bf82d44638550 (and https://github.com/nicokosi/pullpitoK/commit/78af155f49196f78511432e94d3960a36f2f7cb4?).