Auto-importing new repositories

How to automatically import new or added repositories from your GitHub organization.

This feature is supported for GitHub organizations only.

About this feature

With the Auto-import feature, newly added or created repositories in your GitHub organization are automatically imported into SonarQube Cloud. It means that existing repositories in GitHub created prior to enabling the Auto-import new GitHub repositories feature are excluded.

The feature is enabled by default when you import your GitHub organization, though you can choose to disable it during the import process. You can also enable or disable this feature at any time within your SonarQube Cloud organization settings.

When applicable, auto-scan is applied to the projects created through the Auto-import. See Automatic analysis for more information.

Important notes

  • As a prerequisite for the feature, All repositories must be selected in GitHub’s Repository Access settings for your organization. See Modifying the repository access rights of the organization for more information.

  • A sudden spike in new repositories might cause you to reach your organization plan limits and pause analysis. Ensure your plan grants enough private lines of code. See Changing the LOC limit of your subscription for more information.

  • Repositories in GitHub that were created prior to enabling the Auto-import feature are excluded from automatic import. However, you can use the bulk import option to import all existing repositories in your organization. See Bulk importing all repositories for more information.

Enabling / disabling the Auto-import of new GitHub repositories

  1. Retrieve your organization. See Retrieving your organizations for more information.

  2. Go to Administration > Organization settings > Organization binding.

  3. In Automatically import new GitHub repositories, select or unselect the option.

Select or unselect the toggle to enable or disable the auto-import feature.
circle-info

You can also enable the feature during the import of a new organization. See Importing GitHub organization.

Monitoring the Auto-import of new GitHub repositories

To check for failed imports:

  1. Retrieve your organization. See Retrieving your organizations for more information.

  2. Go to Administration > Organization settings > Organization binding. Possible failed imports are indicated below the Automatically import new GitHub repositories section.

Last updated

Was this helpful?