Description
https://github.com/eclipse/che/issues/19966
Is your enhancement related to a problem? Please describe.
The current implementation for GitHub factory does not support reading from a private repository. Because of this, a user cannot load a devfile hosted in a private repository. We can define a git credential secret in a k8s user namespace, but this only works if the devfile is reachable from the factory.
Describe the solution you'd like
Just like we have in Gitlab factory, it would be nice to add support for OAuth token authentication. Ideally the end solution would have the same user experience as with the Gitlab solution. The solution also needs to work for repositories behind a SSO organization.