Operations Against a GitHub Repository Are Failing
Symptoms
- You cannot view Pull Requests in the IDE, but they can be opened in the GitHub web UI without any issues. The IDE will show the following:
Can't load data from GitHub
[Could not resolve to a Repository with the name <organization-name>/<repository-name>'.].
- When you log in to a GitHub account and perform any git operation (push/pull/fetch) against a remote GitHub repository, you see the following:
remote: Permission to <organization-name>/<repository-name>.git denied to <username>fatal: unable to access 'https://github.com/<organization-name>/<repository-name>.git /': The requested URL returned error: 403
Cause
The JetBrains IDE integration app has not been allowed to access the organization's repositories on GitHub.
Resolution
Please follow these guides from GitHub:
- If you experience this issue with your personal account, please follow this guide:
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/authorizing-oauth-apps - If you are an organization owner, you will need to grant access to the JetBrains IDE Integration app as shown in this article:
https://docs.github.com/en/organizations/restricting-access-to-your-organizations-data/approving-oauth-apps-for-your-organization - If you are a member of an organization, you will need to request access to the JetBrains IDE Integration app:
https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps
Workaround:
- Please use a Personal Access Token:
https://www.jetbrains.com/help/idea/github.html#register-existing-account
Please sign in to leave a comment.
This is not working for me either as a regular GitHub login or token. I have seen this in three tries across two different computers and two different JetBrains IDEs. In all cases I see the a trialing ‘/’ after the GitHub URL. See the image in this issue: https://github.com/saidfathalla/Science-knowledge-graph-ontologies/issues/9
I was encountering this error, and rather than it being an issue with Github premissions, it was an issue with the version of PyCharm I had installed. https://github.com/advisories/GHSA-vfg9-hgrq-rjhq Updating the IDE to the latest version immediately solved the permissions error for me.