Setting up the Integration
Was this helpful?
Was this helpful?
In order to use the Git integration, you must first add credentials to the Account page in Code Ocean.
Click the Account icon
From the Credentials screen click + Add Credentials
Click <Git provider> Credentials
Enter your Git provider's username and a Personal Access Token (PAT). Click the developer settings link to visit the webpage where a PAT can be generated. See below for more information.
Follow the steps below to generate a PAT in your Git provider's account. 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.
In the upper-right corner of the page, click your profile photo, then click Settings.
In the left sidebar, click Developer settings.
In the left sidebar, click Personal access tokens, select Tokens (classic).
Click Generate new token, select Generate new token (classic).
Fill out the form and check the repo box for the scope.
For more information about how to generate a GitHub PAT, read this .
Select the .
For more information about how to generate a GitLab PAT, read .
For information about how to generate a Bitbucket PAT ("App Password"), read .
Open User Settings by clicking the icon in the top right of the screen and select Personal access tokens.
For more information about how to generate an Azure DevOps PAT, read this .