eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

[dev sandbox] Cannot push to a github branch: permission denied #23212

Closed vitaliy-guliy closed 2 weeks ago

vitaliy-guliy commented 3 weeks ago

Describe the bug

I permanently face issues with pushing to my branch in che-code repository. At the same time there is no problems with pushing to the branch from the dogfooding cluster.

When I forked che-code and then crate a workspace from a fork, everything is fine. The issue appear only on the developer sandbox when pushing to a branch in che-code* repository.

* in fact, not only to che-code repository

Che version

7.93@latest

Steps to reproduce

I'm not sure it is reproducible for other accounts.

  1. Create a workspace using https://github.com/che-incubator/che-code
  2. Create a branch, do some changes, commit and push

Expected behavior

A branch should be pushed.

Runtime

OpenShift

Screenshots

Screenshot from 2024-10-29 13-29-52

Environment

Dev Sandbox (workspaces.openshift.com)

ibuziuk commented 3 weeks ago

@vitaliy-guliy have you granted the permissions to the che-incubator organization:

Screenshot 2024-10-31 at 15 44 33
vitaliy-guliy commented 2 weeks ago

@ibuziuk I've requested access to che-incubator for Red Hat OpenShift Dev Spaces (Developer Sandbox) and waiting for the response. I will comment here once my request is granted.

vitaliy-guliy commented 2 weeks ago

Everything's fine, after getting the permissions I can easily commit and push to https://github.com/che-incubator/che-code repository.

To get the access to the repository I had to open the github settings, then go to

Settings > Applications > Authorized OAuth Apps > Red Hat OpenShift Dev Spaces (Developer Sandbox)

There is a list of organizations. To have the access to the organization repositories I requested permissions by clicking a button

Screenshot from 2024-11-05 17-04-29