Setting up the Integration

Preconfigure your Organization

Ensure that your Code Ocean admin has already configured the Git provider organization from the Admin Dashboard.

Configure Personal Access Token for Code Ocean

In order to establish the API call and complete the integration, follow the steps below. Note that the exact process varies depending on the Git provider, but the objective is to retrieve the token from the Git provider and add the token to your Code Ocean account.

Generate a personal access token (PAT) in your Git provider's account

Creating a GitHub Personal Access Token

  1. In the upper-right corner of the page, click your profile photo, then click Settings.

  2. In the left sidebar, click Developer settings.

  3. In the left sidebar, click Personal access tokens.

  4. Click Generate new token.

  5. Fill out the form and check the repo box for the scope.

For more information about how to generate a Github PAT, read this article from GitHub.

Save the PAT in Code Ocean under your account page

  1. Click the Account icon

  2. From the Credentials screen click +Add Credentials

  3. Click <Git provider> Credentials

  4. Enter your Git provider's username and PAT.

Last updated