git-credentials-secret not created when cloning a private repository that has no devfile
See original GitHub issueDescribe the bug
The git-credentials-secret
secret is not created automatically when:
-
The admin has set up the GitHub Oauth app (see docs)
-
A new user tries to create a devworkspace with a private repository that contains no devfile:
-
Click
Create & Open
The Che-theia editor starts, however, the git-credentials-secret
secret is not created in the user’s namespace. Therefore the private repository is not cloned unless the user manually provides their GitHub credentials.
Che version
next (development version)
Steps to reproduce
See above
Expected behavior
The git-credentials-secret
secret should be created in the user’s namespace when a devworkspace based on a private repository is created.
Runtime
OpenShift
Screenshots
No response
Installation method
chectl/next
Environment
macOS
Eclipse Che Logs
No response
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
unable to clone a repository when github oAuth is enabled
Trying to import a private github project, project is not cloned ... (I created a dummy empty repository on github and made it...
Read more >git - Why am I not able to clone a private repository in which I ...
You can clone it over HTTPS git clone https://github.com/privateRepo/privateRepo.git. The prompt will ask for your username ...
Read more >Clone a git repository with Tekton
How to clone source code from git with Tekton Pipelines. This guide shows you how to: Create a Task to clone source code...
Read more >Chapter 3. Developer workspaces - Red Hat Customer Portal
A CodeReady Workspaces workspace can be created by pointing to devfile that is stored in a Git source repository on a feature branch...
Read more >How to create a private GitHub repository example
Now that developers can create a private GitHub repository in its free ... how to securely clone and pull your code locally without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I haven’t checked in-depth but I think this might be happening because there is an IO exception when trying to read a devfile, before the
git-credentials-secret
can be created: https://github.com/eclipse-che/che-server/blob/d8bed4006aba47feb710612b1e19cfcb355cc611/wsmaster/che-core-api-factory/src/main/java/org/eclipse/che/api/factory/server/scm/AuthorizingFileContentProvider.java#L89-L91I’m not able to reproduce this issue anymore for chectl next: