getgrav / grav-plugin-github

Grav GitHub Plugin
https://getgrav.org
MIT License
13 stars 3 forks source link

Github deprecation API warning #4

Open GuLinux opened 4 years ago

GuLinux commented 4 years ago

Hello,

I'm getting these emails since a few weeks about a deprecated API being used in my website, and I suspect it might be pinned down to this plugin specifically. Here's the full email text:

Hi,

On February 13th, 2020 at 08:34 (UTC) your personal access token (grav) using php-github-api (http://github.com/KnpLabs/php-github-api) was used as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/repositories/<repo_id>/releases

Please use the Authorization HTTP header instead, as using the `access_token` query parameter is deprecated and will be removed July 1st, 2020.

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

Do you confirm this might come from your plugin, and if so advise? Thanks Marco

mahagr commented 4 years ago

I'm getting these deprecated messages on every tool I use, including PhpStorm IDE... Looks like Github has been making some API changes few days ago.