-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors working with private repos on GitHub orgs, caused by missing 3rd party access for Gitpod #8076
Comments
Many users with private repos in orgs are hitting this issue. Treating as a bug because there is no visible indication in the UI for what is happening (console errors are hidden) and no links to instructions for how to fix. Suggested improvements in Gitpod:
|
This affects forks also. |
Need visual design on showing errors for Project Branches and Project Config (currenty only in console) |
Another example from a support user (internal) |
@jldec this issue is quite common, saw a good number of users experience this and were left clueless. Here's a recent one: on Discord |
This issue affects all users trying to use Gitpod on private org repos. Minimal suggested fix
Scheduled - cc: @geropl |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This came up again recently (support link - internal) |
@jldec Could we solve this problem by finding an alternative to GitHub Apps? E.g., if we nudge people to use Personal Tokens with the relevant scopes, and use that to write PR status updates/comments and install webhooks? 🤔 |
I'm pretty sure this is a day one situation with workspace start. The new thing about this was introduced with Projects in Gitpod. We leave a perception that the repository access is granted because it's possible to add the That's for the problem. Now adding options for a solution:
|
OK so is this solved or does gitpod not work with github organizations? |
For whoever stumbles upon here, this link does work and you just need to scroll down to the organisation you are an admin off and click |
Just to confirm that is still happening and definitely is annoying. Our team is looking to improve our workflow and we are considering Gitpod but when it fails on zero-day without extra steps required it is not a great experience for new customers. Quite a few acrobatics in my opinion when someone want to try your product. Thanks Pascal Charbonneau |
GitHub orgs now restrict 3rd party application access by default. This means that even after the Gitpod app is installed on the org E.g. when creating a /new project, 3rd party access to the org is not automatically granted to the Gitpod app.
Subsequent attempts to start a workspace on a private repo in the org will produce errors like:
Repository not found
withYour access token was updated recently. Please try again if the repository exists and Gitpod was approved for <org>
or
Permission to access private repositories has been granted. If you are a member of <org>, please try to request access for Gitpod
Navigating to the Branches page on the new project, will show an empty branches list, and the browser console will contain an error message like
Getting branches failed Error: getProjectOverview failed with message: Although you appear to have the correct authorization credentials, the '<org>' organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/
Navigating to the Project Configuration page will show "No Access"
Authorize github.com and grant repo permission to access project configuration
, however, clicking on the "Authorize Provider" button will produce a spinning icon, and another console errorUncaught (in promise) Erro: Request guessProjectConfiguration failed with message: NotFoundError
To approve 3rd party access for Gitpod on an org
A user who is an admin of the org, needs to approve the Gitpod app for 3rd party access to the org.
Organization access
Grant
button .The text was updated successfully, but these errors were encountered: