Connect a Git Repository to WSO2 Cloud
WSO2 Cloud - Integration Platform lets you develop integrations by connecting your GitHub, Bitbucket, GitLab, or Azure DevOps repository. You can connect an existing repository or start with an empty repository and commit your source code later. Connecting a repository enables automatic deployments and workflow automation directly within WSO2 Cloud - Integration Platform.
The following authorization methods are supported for each Git provider:
| Git provider | Authorization method |
|---|---|
| GitHub | OAuth authorization |
| Bitbucket | App password |
| GitLab | Personal access token (PAT) |
| Azure DevOps | Personal access token (PAT) |
WSO2 Cloud - Integration Platform supports both Bitbucket Cloud and Bitbucket Server. The supported Bitbucket Server version is 8.9.2.
Connect a GitHub repository
- Sign in to WSO2 Cloud.
- When creating a new project or integration, select Authorize with GitHub.
- Follow the on-screen prompts to authorize the WSO2 Cloud App with your GitHub account.
Authorizing the WSO2 Cloud App grants the following permissions to perform actions on your behalf within the repository:
| Permission | Read | Write | Description |
|---|---|---|---|
| Issues | Y | N | Read integration ID labels to filter pull requests |
| Metadata | Y | N | List repositories |
| Contents | Y | Y | List branches and create a branch to commit sample code |
| Pull Request | Y | Y | Create a pull request when you start with a WSO2 Integrator sample |
| Webhooks | Y | Y | Trigger automatic deployments and configuration generation |
Connect a Bitbucket repository
-
Sign in to WSO2 Cloud.
-
In the console header, click the Organization list and select your organization.
-
In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.
-
Click the Credentials tab.
-
Click + Add Git Credentials.
-
Enter a Credential Name and select Bitbucket as the Git provider.
-
Enter your Bitbucket Username.
-
Enter the App Password obtained from Bitbucket.
tipSee the Atlassian documentation for instructions on creating an app password in Bitbucket.
-
Click Save.
Authorizing with a Bitbucket app password grants the following permissions:
| Permission | Read | Write | Description |
|---|---|---|---|
| Account | Y | N | Get user information and workspace details |
| Repositories | Y | Y | List branches and create a branch to commit sample code |
| Pull Requests | Y | Y | Create a pull request when you start with a WSO2 Integrator sample |
| Webhooks | Y | Y | Trigger automatic deployments and configuration generation |
Connect a GitLab repository
WSO2 Cloud supports only self-managed GitLab instances.
-
Sign in to WSO2 Cloud.
-
In the console header, click the Organization list and select your organization.
-
In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.
-
Click the Credentials tab.
-
Click + Add Git Credentials.
-
Enter a Credential Name and select GitLab as the Git provider.
-
Enter the Server URL of your GitLab self-managed instance.
-
Enter the Access Token obtained from GitLab.
tipSee the GitLab documentation for instructions on creating a personal access token in GitLab.
-
Click Save.
Authorizing with a GitLab personal access token grants the following permissions:
| Permission | Description |
|---|---|
| API | Grants full read/write access to the API, covering all groups and projects, as well as read/write access to the repository |
Connect an Azure DevOps repository
-
Sign in to WSO2 Cloud.
-
In the console header, click the Organization list and select your organization.
-
In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.
-
Click the Credentials tab.
-
Click + Add Git Credentials.
-
Enter a Credential Name and select Azure DevOps as the Git provider.
-
Enter your Azure DevOps Organization Name.
-
Enter the Access Token obtained from Azure DevOps.
tipSee the Azure DevOps documentation for instructions on creating a personal access token in Azure DevOps.
-
Click Save.
Authorizing with an Azure DevOps personal access token grants the following permissions:
| Permission | Read | Write | Description |
|---|---|---|---|
| Code | Y | N | View and clone repositories, branches, commits, and pull requests |
| Project and Team | Y | N | Read project-level information, including team details, project settings, and configurations |
What's next
- Manage deployment pipelines — Define the promotion flow of integrations across environments in your organization
- Configurations overview — Manage runtime values and build settings for deployed integrations
- Environments overview — Control how integrations are promoted across environments