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

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

Creating a GitHub App#

You must create and correctly set up a GitHub App to allow Codacy Self-hosted to integrate with GitHub.

To create the GitHub App:

  1. If you're using GitHub Cloud, open https://github.com/settings/apps/new.

    If you're using GitHub Enterprise, open https://github.example.com/settings/apps/new, replacing the HTTP protocol and hostname with the correct values for your GitHub Enterprise instance.

  2. Configure the new GitHub App using the values listed on the table below, replacing https://codacy.example.com with the correct base URL of your Codacy instance.

    Field Value
    GitHub App name Codacy
    Homepage URL https://codacy.example.com
    User authorization callback URL https://codacy.example.com
    Request user authorization (OAuth) during installation Enabled

    Make sure this option is selected to request that the installing user grants access to their identity during the installation of your Codacy GitHub App.
    Webhook URL For GitHub Cloud:
    https://codacy.example.com/2.0/events/gh/organization

    For GitHub Enterprise:
    https://codacy.example.com/2.0/events/ghe/organization
    Repository permissions
    Administration Read & write
    Checks Read & write
    Issues Read & write
    Metadata Read only
    Pull requests Read & write
    Webhooks Read & write
    Commit statuses Read & write
    Organization permissions
    Members Read only
    Webhooks Read & write
    User permissions
    Email addresses Read only
    Git SSH keys Read & write
    Where can this GitHub App be installed? Any account
  3. Scroll to the bottom of the page, click Generate a private key, and save the .pem file containing the private key.

  4. Take note of the following information, as you'll need it to configure Codacy:

    • GitHub App name
    • App ID
    • Client ID
    • Client secret
    • Private key (contents of the .pem file generated in the previous step)

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 November 21, 2022