# Importing GitHub repositories

Once the integration of SonarQube Community Build with GitHub has been set up, you can import a GitHub repository to create the corresponding project in SonarQube Community Build. The so-created SonarQube Community Build project is "bound" to its GitHub repository. With a bound project, you can see in the SonarQube Community Build UI with which repository the project is associated.

To import a GitHub repository into SonarQube Community Build, do one of the following:

* Import the GitHub repository from the SonarQube Community Build UI: see below.\
  You need access to the GitHub repository and you need the **Create Projects** permission in SonarQube Community Build.
* Analyze a repository from a GitHub action. SonarQube Community Build will create the corresponding project in SonarQube Community Build and will automatically bind it to the GitHub repository if it finds a matching GitHub integration configuration in its database. See [Adding analysis to GitHub Actions workflow](/sonarqube-community-build/devops-platform-integration/github-integration/adding-analysis-to-github-actions-workflow.md).

## Importing GitHub repositories <a href="#repositories" id="repositories"></a>

To import GitHub repositories into SonarQube Community Build:

1. In the top navigation bar of SonarQube Community Build, select the **Projects** tab.
2. In the top right corner, select the **Create Project** > **Import from DevOps platforms** button.
3. In the **Import from GitHub** section, select **Setup**. The **GitHub project onboarding** page opens.
4. In the **GitHub project onboarding** page, select the GitHub organization and then the repository(ies) you want to import.
5. Select the **Import** button. The Clean as You Code setting page opens.
6. Select the new code definition option.
7. Select the **Create projects** button.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-community-build/devops-platform-integration/github-integration/importing-github-repositories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
