[GitHub API] Deprecation notice for authentication via URL queryparameters
See original GitHub issueI get this message after using this awesome script these days.
Using 1.1.2
using this call:
github-changes -o NLog -r NLog.Extensions.Logging --only-pulls --token <mytoken> --use-commit-body --file changelog.md -b master --date-format '(YYYY/MM/DD)'
Hi @304NotModified,
On December 29th, 2020 at 00:59 (UTC) your personal access token (changes2) using NodeJS HTTP Client was used as part of a query parameter to access an endpoint through the GitHub API:
https://api.github.com/repositories/49987133/tags
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
Is there some plan to change to the Authorization header?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (9 by maintainers)
Top GitHub Comments
2.0.1 works like a charm, no warning no nothing 😃 I uninstalled
@octokit/core
before installing 2.0.1 and it worked nonetheless. Thanks a million @lalitkapoor!I’m almost sure this is due to the
github-changes
using very outdated dependencygithub
at version0.1.16
. Latest version ofgithub
is14.0.0
, and even that is deprecated and moved to@octokit/rest
(latest version being18.0.12
).