# Configuring HTTPS authorization credentials

For private projects, 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](/bitrise-platform/infrastructure/build-machines/about-build-machines) when starting a new build. You can set up authorization:

- [When adding a new project](/bitrise-ci/getting-started/adding-a-new-project).
- At any time on the **Project settings** page.

To configure authorization for a repository with HTTPS URL on the **Project settings** page:

1. Create a Personal Access Token at your Git provider and save it.

   - [GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
   - [Gitlab](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html)
   - [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/)

   :::note[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.

   :::
1. 1. Open your project on Bitrise with a user that has the **Admin** [role on the project](/bitrise-platform/projects/roles-and-permissions-for-bitrise-ci), or a [custom role](/bitrise-platform/workspaces/collaboration-and-permissions-in-workspaces/custom-roles/custom-roles-overview) with the **Edit workflows** permission.
1. On the main page of the project, click on the **Project settings** button.
1. Make sure you have an HTTPS URL: on the left, select **Basic settings**, and find the **Repository URL**.
1. On the left, select **Repository**.
1. In the **Authorization** section, find the **Authorization method** card, and click **Add credentials**.

   ![SCR-20260331-prho.png](/img/_paligo/uuid-3de8dcba-e678-997e-20f0-3055cd889bb0.png)
1. In the dialog, add the Personal Access Token.

   :::note[Bitbucket username]

   If your repository is on Bitbucket, you'll also have to provide your Bitbucket username.

   :::

   ![change-https-credentials.png](/img/_paligo/uuid-c1bacf0c-d211-9674-a2d6-625665e9b381.png)
1. Once done, click **Save changes**.
