Configuring HTTPS authorization
For private apps, you can authorize Bitrise to access your repository via an HTTPS URL, using a Personal Access Token. This is necessary for Bitrise to be able to clone your repository to the virtual machine when starting a new build. You can set up authorization:
-
At any time on the App settings page.
To configure authorization for a repository with HTTPS URL:
Admin access only
Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.
-
Create a Personal Access Token at your Git provider and save it.
Fine-grained access
The Personal Access Token needs to have read access to the repository. We recommend using fine-grained Personal Access Tokens that do not have any additional rights to the repository or your Git provider account.
-
Open your app on Bitrise.
-
On the main page of the app, click on the App Settings icon:
.
-
Make sure you have an HTTPS URL: on the left, select General, and in the Basic settings section, find the Repository URL.
-
On the left, select Integrations.
-
Select the Git provider tab.
-
In the Personal Access Token section, click .
-
In the pop-up window, add the Personal Access Token.
Bitbucket username
If your repository is on Bitbucket, you'll also have to provide your Bitbucket username.
-
Once done, click
.