Skip to main content

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 providerAuthorization method
GitHubOAuth authorization
BitbucketApp password
GitLabPersonal access token (PAT)
Azure DevOpsPersonal access token (PAT)
tip

WSO2 Cloud - Integration Platform supports both Bitbucket Cloud and Bitbucket Server. The supported Bitbucket Server version is 8.9.2.

Connect a GitHub repository

  1. Sign in to WSO2 Cloud.
  2. When creating a new project or integration, select Authorize with GitHub.
  3. 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:

PermissionReadWriteDescription
IssuesYNRead integration ID labels to filter pull requests
MetadataYNList repositories
ContentsYYList branches and create a branch to commit sample code
Pull RequestYYCreate a pull request when you start with a WSO2 Integrator sample
WebhooksYYTrigger automatic deployments and configuration generation

Connect a Bitbucket repository

  1. Sign in to WSO2 Cloud.

  2. In the console header, click the Organization list and select your organization.

  3. In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.

  4. Click the Credentials tab.

  5. Click + Add Git Credentials.

  6. Enter a Credential Name and select Bitbucket as the Git provider.

  7. Enter your Bitbucket Username.

  8. Enter the App Password obtained from Bitbucket.

    tip

    See the Atlassian documentation for instructions on creating an app password in Bitbucket.

  9. Click Save.

Authorizing with a Bitbucket app password grants the following permissions:

PermissionReadWriteDescription
AccountYNGet user information and workspace details
RepositoriesYYList branches and create a branch to commit sample code
Pull RequestsYYCreate a pull request when you start with a WSO2 Integrator sample
WebhooksYYTrigger automatic deployments and configuration generation

Connect a GitLab repository

note

WSO2 Cloud supports only self-managed GitLab instances.

  1. Sign in to WSO2 Cloud.

  2. In the console header, click the Organization list and select your organization.

  3. In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.

  4. Click the Credentials tab.

  5. Click + Add Git Credentials.

  6. Enter a Credential Name and select GitLab as the Git provider.

  7. Enter the Server URL of your GitLab self-managed instance.

  8. Enter the Access Token obtained from GitLab.

    tip

    See the GitLab documentation for instructions on creating a personal access token in GitLab.

  9. Click Save.

Authorizing with a GitLab personal access token grants the following permissions:

PermissionDescription
APIGrants 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

  1. Sign in to WSO2 Cloud.

  2. In the console header, click the Organization list and select your organization.

  3. In the left navigation menu under Admin, click Settings. This opens the organization-level settings page.

  4. Click the Credentials tab.

  5. Click + Add Git Credentials.

  6. Enter a Credential Name and select Azure DevOps as the Git provider.

  7. Enter your Azure DevOps Organization Name.

  8. Enter the Access Token obtained from Azure DevOps.

    tip

    See the Azure DevOps documentation for instructions on creating a personal access token in Azure DevOps.

  9. Click Save.

Authorizing with an Azure DevOps personal access token grants the following permissions:

PermissionReadWriteDescription
CodeYNView and clone repositories, branches, commits, and pull requests
Project and TeamYNRead project-level information, including team details, project settings, and configurations

What's next