Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 558444

Summary: GitHub Deprecation Notice after connecting with Mylyn
Product: z_Archived Reporter: Raffi Khatchadourian <raffi.khatchadourian>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: twolf, werner.keil
Version: 3.24   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
URL: https://api.github.com/repositories/82070134/issues?per_page=1&page=1
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=567557
Whiteboard:

Description Raffi Khatchadourian CLA 2019-12-18 16:57:43 EST
After connecting to GitHub with Mylyn (task repository), I received the following message from GitHub:

Hi @khatchad,

You recently used a password to access an endpoint through the GitHub API using GitHubEclipse/1.3.0. We will deprecate basic authentication using password to this endpoint soon:

https://api.github.com/repositories/82070134/issues?per_page=1&page=1

We recommend using a personal access token (PAT) with the appropriate scope to access this endpoint instead. Visit https://github.com/settings/tokens for more information.

Thanks,
The GitHub Team
Comment 1 Werner Keil CLA 2020-01-11 10:26:30 EST
+1 

Does this work with Mylyn/Egit already?
Comment 2 Frank Becker CLA 2020-06-06 10:51:18 EDT
I do not know how to setup a repository for github.com. 

Can you tell me how I can create one.
Comment 3 Thomas Wolf CLA 2020-10-04 12:30:33 EDT
(In reply to Werner Keil from comment #1)
> Does this work with Mylyn/Egit already?

Nope, it didn't. Just implemented that for bug 567557. Could use beta testers :-)

Mylyn/EGit installed from the temporary update site https://ci.eclipse.org/egit/job/egit-github.gerrit/127/artifact/org.eclipse.mylyn.github-site/target/repository/ (download as ZIP, then install from the downloaded archive via "Install New Software...") adds a "Use access token authentication" checkbox to the Mylyn repository properties or creation dialog. Check that, and enter the token instead of a password.

Note that tokens for accessing private repos need to have the "repo" scope, and tokens for creating gists need the "gists" scope. A "gists" Mylyn task repo additionally needs the user name.

See [1] and [2] for how to create a personal access token.

If you find any problems, please report either here, or at bug 567557, or on the Gerrit change at https://git.eclipse.org/r/c/egit/egit-github/+/170282 .

[1] https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token
[2] https://docs.github.com/en/free-pro-team@latest/developers/apps/scopes-for-oauth-apps
Comment 4 Thomas Wolf CLA 2020-10-04 16:49:22 EDT
I see that the change in egit-github got already merged. So if you want to test, you could simply install from the official EGit-Github nightly update site: https://download.eclipse.org/egit/github/updates-nightly/ .
Comment 5 Thomas Wolf CLA 2020-10-06 06:54:16 EDT
Documentation: https://wiki.eclipse.org/EGit/GitHub/User_Guide#Credentials

*** This bug has been marked as a duplicate of bug 567557 ***