Start Free
10.5 | DevOps platform integration | GitHub integration | Setting up your project analysis | Importing your GitHub projects

Importing your GitHub projects into SonarQube

On this page

Once the integration of SonarQube with GitHub has been properly set up, you can import a GitHub repository to create the corresponding project in SonarQube. The so-created SonarQube project is "bound" to its GitHub repository. 

To import a GitHub project into SonarQube, do one of the following:

  • Import the GitHub repository from the SonarQube UI: see below. 
  • Scan a repository from a GitHub action. SonarQube will create the corresponding project in SonarQube and will automatically bind it to the GitHub repository if it finds a matching GitHub integration configuration in its database. See Adding a SonarQube analysis to your GitHub Actions workflow.

Importing a GitHub project from the SonarQube UI

To import a GitHub repository into SonarQube:

  1. In the SonarQube UI, go to the Projects page and select the Create project > Import from DevOps platform menu in the top right corner. 
  2. In the Import from GitHub card, select the Setup button. 
  3. Select the GitHub repository you want to import and create the SonarQube project. 

Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARLINT, SONARQUBE, SONARCLOUD, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License