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:

Workaround:

7 out of 25 found this helpful
3 comments

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 

2

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.

 

 

 

 

0

If you don't see GitHub features at all, if you're using multiple SSH identities (.ssh/config with multiple Host's) and adjusted the .git/config remote origin URL to a SSH alias (non git@github.com), you can still benefit from GitHub IDE features by changing the remote origin to git@github.com and running this in the root of every repo:

  • Win: git config --local core.sshCommand "ssh -i C:/Users/<your_user>/.ssh/<identity_file> -o IdentitiesOnly=yes"
  • Unix: git config --local core.sshCommand 'ssh -i ~/.ssh/<identity_file> -o IdentitiesOnly=yes'
0

Please sign in to leave a comment.

Have more questions?

Submit a request