> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-scan/scan-external-repositories/configuring-repository-sync.md).

# Configuring Repository Sync

## Configuring External Repositories Sync

### Configuring Bitbucket as an External Source

1. Create an OAuth consumer App in Bitbucket with the following details -
   1. Callback URL - https\://\<FALCON\_SUITE\_INSTANCE\_URL>/oauth/bitbucket/callback
   2. URL - https\://\<FALCON\_SUITE\_INSTANCE\_URL>
   3. Permissions - Account (Read), Repositories (Read)
2. Navigate to **`Global Settings`** -> **`Settings`** -> **`BitBucket Repo Sync Settings`** and click on edit. Other settings apart from the below-mentioned keys can be left blank.

### BitBucket Repo Sync Settings

| Settings Name                      | Description                                                                                                      |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **`OAUTH_CLIENT_ID`**              | OAuth Consumer Client Id. Used for authenticating the REST API to get repositories.                              |
| **`OAUTH_CLIENT_SECRET`**          | OAuth Consumer Client Secret. Used for authenticating the REST API to get repositories.                          |
| **`PROJECT_NAME_INCLUDE_PATTERN`** | Repository name matching this pattern will only be synced. By default all the repositories will be scanned.      |
| **`PROJECT_NAME_EXCLUDE_PATTERN`** | Repository name matching this pattern will only be ignored. By default none of the repositories will be ignored. |
| **`SCAN_ALL_APPLICATION`**         | Should all the repositories matching the Include / Exclude Pattern be scanned.                                   |
| **`SCAN_ALL_BRANCHES`**            | Should all the branches of the repository be scanned.                                                            |

### Configuring GitHub as an External Source

1. Navigate to **`Global Settings`** -> **`Settings`** -> **`GitHub Repo Sync Settings`** and click on edit. Other settings apart from the below-mentioned keys can be left blank.

### GitHub Repo Sync Settings

| Settings Name                      | Description                                                                                                      |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **`OAUTH_CLIENT_ID`**              | OAuth Consumer Client Id. Used for authenticating the REST API to get repositories.                              |
| **`OAUTH_CLIENT_SECRET`**          | OAuth Consumer Client Secret. Used for authenticating the REST API to get repositories.                          |
| **`PROJECT_NAME_INCLUDE_PATTERN`** | Repository name matching this pattern will only be synced. By default all the repositories will be scanned.      |
| **`PROJECT_NAME_EXCLUDE_PATTERN`** | Repository name matching this pattern will only be ignored. By default none of the repositories will be ignored. |
| **`SCAN_ALL_APPLICATION`**         | Should all the repositories matching the Include / Exclude Pattern be scanned.                                   |
| **`SCAN_ALL_BRANCHES`**            | Should all the branches of the repository be scanned.                                                            |
| **`API_TOKEN_SCOPE`**              | Scopes to be requested while generating the OAuth token                                                          |

### Configuring Anypoint Design Center as an External Source

1. Navigate to **`Global Settings`** -> **`Settings`** -> **`Design Center Project Sync Settings`** and click on edit
2. NOTE: The connected app should have **`Design Center Viewer`** permission for the required organizations

### Design Center Project Sync Settings

| Settings Name                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`ANYPOINT_CLIENT_ID`**           | Anypoint **`Connected App`** client id                                                                                                                                                                                                                                                                                                                                                                                                                |
| **`ANYPOINT_CLIENT_SECRET`**       | Anypoint **`Connected App`** client secret                                                                                                                                                                                                                                                                                                                                                                                                            |
| **`OWNER_ID`**                     | The owner ID is your user’s unique identifier (UUID). It can be obtained by the organization owner (or any user with Admin privilege) accessing to the Anypoint Platform’s Users page. For more details on how to obtain a given user ID, please refer to the [API Design Center documentation](https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-23abe036327a.anypoint-platform/api-designer-experience-api/) |
| **`SCAN_ALL_APPLICATION`**         | Should all the repositories matching the Include / Exclude Pattern be scanned.                                                                                                                                                                                                                                                                                                                                                                        |
| **`SCAN_ALL_BRANCHES`**            | Should all the branches of the repository be scanned.                                                                                                                                                                                                                                                                                                                                                                                                 |
| **`PROJECT_NAME_INCLUDE_PATTERN`** | Repository name matching this pattern will only be synced. By default all the repositories will be scanned.                                                                                                                                                                                                                                                                                                                                           |
| **`PROJECT_NAME_EXCLUDE_PATTERN`** | Repository name matching this pattern will only be ignored. By default none of the repositories will be ignored.                                                                                                                                                                                                                                                                                                                                      |

### See Also

* [On The Fly Results](/product-guides/integral-zone/iz-suite/iz-scan/anypoint-studio/source-code-analysis/anypoint-studio-analysis.md)
* [Source Code Analysis - Auto Fix Issues](/product-guides/integral-zone/iz-analyzer/autofix/autofix-anypoint-studio.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-scan/scan-external-repositories/configuring-repository-sync.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
