Contact Us 1-800-596-4880

Installing and Authorizing GitHub Synchronization

Installing the GitHub Synchronization application in an organization is the first step in making the organization’s repositories accessible to API Designer.

Install the GitHub Synchronization application within the GitHub user interface. Perform this action either as a GitHub organization administrator or as a GitHub user. Then, authorize the application when performing a GitHub Synchronization action for the first time within API Designer. Synchronization actions include creating new GitHub repositories for existing API specifications and creating new API specifications that are synchronized with existing GitHub repositories.

Install the GitHub Synchronization Application as a GitHub Organization Administrator

To get started, first install the GitHub Synchronization application within the GitHub user interface.

Before You Begin

To install the GitHub Synchronization application as a GitHub organization administrator, you must have:

  • A GitHub account

  • A membership in the GitHub organization in which you want to install the application

  • The administrator permission to access the GitHub organization (as configured through your GitHub account settings)

  • You cannot install and use GitHub Synchronization if your GitHub account uses an IP allow list.

  • In the email settings for the GitHub account you want to use with GitHub Synchronization, if you select Keep my email addresses private, ensure you do not select Block command line pushes that expose my email. The block setting prevents you from pushing commits in your synchronized project.

Install the GitHub Synchronization application

  1. Navigate to the US GitHub Synchronization application page or EU Github Synchronization application page depending on your region.

  2. Click Install.

  3. In the Install MuleSoft GitHub Integration dialog, select an organization in which to install the application.

  4. Click All repositories to make all repositories available, or click Only select repositories and specify individual repositories.

  5. Click Install.

The application must be authorized in API Designer to complete the integration with GitHub. See Authorize the GitHub Sync Application in API Designer.

Install the GitHub Synchronization Application as a GitHub User

Installing the GitHub Synchronization application in a GitHub user account enables you to sync your individual GitHub user repositories.

Before You Begin

To install the GitHub Synchronization application as a GitHub user, you must have:

  • A GitHub account

  • A membership in the GitHub organization in which you want to install the application

In the email settings for the GitHub account you want to use with GitHub Synchronization, if you select Keep my email addresses private, ensure you do not select Block command line pushes that expose my email. The block setting will prevent you from pushing commits in your synchronized project.

Install the GitHub Synchronization Application

  1. Navigate to the US GitHub Synchronization application page or EU Github Synchronization application page depending on your region.

  2. Click Install.

  3. In the Install MuleSoft GitHub Integration dialog, select a GitHub user account (typically the first items in the displayed list).

  4. Click All repositories to make all repositories available or click Only select repositories and specify individual repositories.

  5. Click Install.

The application must be authorized in API Designer to complete the integration with GitHub. See Authorize the GitHub Synchronization Application in API Designer.

Authorize the GitHub Synchronization Application in API Designer

To authorize the GitHub Synchronization application, ensure your user ID is assigned the Design Center Developer permission.

  1. Sign in to the Anypoint Platform.

  2. On the Design Center Projects page, click Create +.

  3. Select New API Specification.

  4. In the New API Specification panel, click Authorize the MuleSoft app now to get started.

  5. Click Authorize.

  6. In the subsequent dialog, click Authorize MuleSoft GitHub Integration.

You are redirected to API Designer, which displays an Authorized Successfully message. You can now complete the process that originally triggered the application authorization.

Troubleshooting GitHub Synchronization Application Installation

If you encounter errors when attempting to authorize the GitHub Synchronization application, try deauthorizing and then reauthorizing the GitHub Synchronization application:

  1. Click Revoke in the GitHub user interface (Settings > Applications > Authorized GitHub Apps).

  2. Authorize the GitHub Synchronization Application.

If you see an empty list, ensure you’ve installed the application either in a GitHub organization or in a GitHub user account before performing any sync action.

Disabling the GitHub Integration

Your organization administrator can disable the Github Integration:

  1. On the Design Center Projects page, click Settings.

  2. Under Integrations, unselect Enable Github Integration.

  3. A confirmation dialog box appears.

  4. Click Disable GitHub.

The integration is now disabled. If your organization has sub-organizations, the organization administrator can enable or disable the integration for each sub-organization as needed.

This action disables source syncing for all users and projects in your organization. If the integration is re-enabled, all past synchronizations are lost even when the repositories still exist on GitHub.