Skip to content
This documentation is a preview of the pull request #2074

For the latest updates and improvements in production, open docs.codacy.com instead.

We no longer have access to this repository, check your SSH keys#

Some changes on your Git provider can prevent Codacy from cloning your private repository. When this happens, Codacy displays the error message "We no longer have access to this repository" on the Repository Dashboard page.

The repository was renamed or moved#

If you renamed the repository or moved it to a different account on the Git provider:

  1. On Codacy, open your Repository Settings, tab General.
  2. Click the button Update repository in the Synchronize with provider area.

The user that configured the repository no longer has access#

This section applies only to GitLab and Bitbucket

On GitLab and Bitbucket organizations, Codacy uses SSH keys to clone your private repositories. Depending on the level of access that the user configuring the repository on Codacy has on the remote Git provider, an SSH key can be added either:

  • Directly to the repository itself, if the user has permissions to add SSH keys to the repository
  • To the user account, if the user only has read or commit permissions on the repository

If the user that initially configured the repository on Codacy was using a user account SSH key but no longer has access to the repository on GitLab or Bitbucket:

  1. On Codacy, open your Repository Settings, tab General.
  2. Click the button Generate New Repository Key to add a new SSH key to your repository deployment keys.

    This is only possible if the user configuring the integration with the remote Git provider has administrator access to the repository. Otherwise, this operation will fail. Alternatively, you can do this process manually by copying the SSH key.

    Note

    If your repository is using submodules on Codacy, add a new SSH user key to your Git provider account instead.

    Generate new key

  3. Open the tab Integrations, and refresh your GitLab or Bitbucket integration.

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

Edit this page on GitHub if you notice something wrong or missing.

If you have a question or need help please contact support@codacy.com.

Last modified May 8, 2024