question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git-credentials-secret not created when cloning a private repository that has no devfile

See original GitHub issue

Describe the bug

The git-credentials-secret secret is not created automatically when:

  1. The admin has set up the GitHub Oauth app (see docs)

  2. A new user tries to create a devworkspace with a private repository that contains no devfile: image

  3. 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dkwon17commented, Mar 28, 2022

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-L91

0reactions
dkwon17commented, Nov 10, 2022

I’m not able to reproduce this issue anymore for chectl next: image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found