Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of Github API with access_token query parameter is deprecated #1011

Closed
ohsabry opened this issue Feb 4, 2020 · 7 comments
Closed

Usage of Github API with access_token query parameter is deprecated #1011

ohsabry opened this issue Feb 4, 2020 · 7 comments

Comments

@ohsabry
Copy link

ohsabry commented Feb 4, 2020

hey guys, we are running shipit-engine 0.27.1, and got an email from github yesterday saying that our shipit app is using access token (with the User-Agent Faraday v0.12.2) as part of a query parameter to access an API endpoint, and that this is deprecated

Is this fixed in the latest published version (0.29.0)?

@casperisfine
Copy link
Contributor

Probably not, Shipit uses octokit to query the API, and they only merged the appropriate change 14 hours ago: octokit/octokit.rb#1192

As far as I can tell it's still unreleased so we'll have to wait to get the fix.

BTW what is the deprecation timeline?

@casperisfine
Copy link
Contributor

Actually, @DazWorrall tells me it might come from omniauth-github, but it doesn't seem to be maintained anymore. We might have to fix it ourselves.

@casperisfine
Copy link
Contributor

Ok, so quick update. The omniauth-github gem was taken over by the omniauth org, so it should actually be maintained.

@DazWorrall did open a PR with the fix: omniauth/omniauth-github#84

So I think the best short term action is to use that branch in your Gemfile, and as soon as the PR is merged and released, you should be able to simply update omniauth-github.

@ohsabry
Copy link
Author

ohsabry commented Feb 5, 2020

@casperisfine thanks a ton for all the help, we'll use the branch and update omniauth-github when its fixed.

There's no deprecation timeline announced yet: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#deprecation-timeline

But their email said this which made some of the people in our org concerned:

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.

@dentarg
Copy link

dentarg commented Feb 11, 2020

@casperisfine
Copy link
Contributor

A fixed version of omniauth-github was released today: https://rubygems.org/gems/omniauth-github/versions/1.4.0

Unfortunately shipit-engine has a ~> 1.3.0 depedency on it.

I'll relax that dependency and do a new Shipit release.

@casperisfine
Copy link
Contributor

I released 0.31.0 this morning with the updated dependency on omniauth-github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants