Skip to content
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

Can't push to organization I have permissions in #720

Closed
ghost opened this issue Jun 5, 2022 · 4 comments
Closed

Can't push to organization I have permissions in #720

ghost opened this issue Jun 5, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2022

The problem

I own the @TapVM organization, but when I try to push a commit to a repository in the org, it fails with the following error

image

Neither does the menu to clone repos from github show any repos from the organization, even though I own it

Release version

Version 3.0.0-linux2

Operating system

Pop OS 22.04 (Based on Ubuntu 22.04)

Steps to reproduce the behavior

  1. Make a commit in an organization
  2. Try to push
  3. Failure 😦

Log files

No response

Screenshots

No response

Additional context

No response

@ghost
Copy link
Author

ghost commented Jun 5, 2022

To make it clear, git push from the CLI works completely fine

@ghost
Copy link
Author

ghost commented Jun 5, 2022

And I have tried to logout and login, didn't fix it :(

@ghost
Copy link
Author

ghost commented Jun 5, 2022

image

Seems like the desktop app doesn't have third-party application permissions to the organization?

How can I allow GH Desktop the permissions? Fwiw, this worked OOTB on windows

@shiftkey
Copy link
Owner

shiftkey commented Jun 6, 2022

This is a known issue.

I cannot access repositories under my organization

The GitHub Desktop application is an OAuth application, but this fork does not
have the same permissions as the app does on Windows and macOS, which manifests
in a couple of different ways:

  • the "Clone a Repository" view does not show all organization repositories
  • pushes to a repository owned by an organization may be rejected with a
    generic error message

The root cause of this is organizations by default will have "OAuth App access
restrictions" enabled, which blocks the GitHub Desktop development app that is
used by this fork.

Workaround: ask your organization admin to approve access
to the GitHub Desktop development app.

#72 has more context, but this isn't something I can resolve in the near term: #72 (comment)

@shiftkey shiftkey closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant