The service credential user
The service credential is a user whose connected Git provider account (GitHub, GitLab or Bitbucket) is used to access those services for the purposes of Bitrise builds.
The service credential is a user whose connected Git provider account (GitHub, GitLab or Bitbucket) is used to access those Git services for certain actions that Bitrise can execute.
GitHub project
The service credential user is NOT required if you use the GitHub App integration to connect to your Git repositories.
You need to set a service credential user, among other things, to:
-
Send build status reports back to your Git provider.
-
Use the Selective builds feature that allows you to specify certain files or directories in your repository that need to be modified to trigger an automatic Bitrise build.
Actions and requirements
For the full list of actions and their access requirements, see Service credential user actions and their required repository access.
By default, the user who added the project to Bitrise is set as the service credential user. Even if you change it, it should always be a user who has access to the project's repository.
It isn't mandatory to have a service credential user: you can use the Selective builds feature or to store the bitrise.yml file in your repository.
setting to not have one. You'll still be able to run builds and trigger builds automatically but Bitrise won't be able to send build status reports to your Git provider, you won't be able to use theChanging the service credential user
The service credential user can be changed at any time but each Bitrise user can only set themselves as the service credential user on the project.
Role requirement
To change the service credential user, you need to have Adminrole on the project's team on Bitrise.
To change the service credential user:
-
Log in to Bitrise with the account that will be the new service credential user.
-
Make sure that account has Admin role on the project's team.
-
Go to your Workspace's main page.
-
Select the project where you want to change the service credential user.
-
Click on
. -
On the left, select Integrations from the menu options.
-
Scroll down to the Service credential user part.
-
Click
.Disabling OAuth projectlication access restrictions for your GitHub organization
If you receive an error while trying to connect or change the service credential user for your project, make sure that the user has the projectropriate access to the GitHub repository and that Third-party projectlication access policy restrictions are disabled.
For more information on how to disable the Third-party projectlication access policy on GitHub, check out Disabling OAuth project access restrictions for your organization.
-
To confirm, click
.
Service credential user actions and their required repository access
GitHub project
The service credential user is NOT required if you use the GitHub App integration to connect to your Git repositories.
The service credential user allows Bitrise to execute a number of different actions that require access to your project's Git repository. Different actions require different levels of access: for example, to use a bitrise.yml
file from the repository requires read access on GitHub while
registering a new SSH key requires admin access.
The following table contains all the actions that require the service credential user, as well as the access level of the service credential user's account at the the three main Git providers
Action |
Required access level on GitHub |
Required access level on Bitbucket |
Required access level on GitLab |
---|---|---|---|
read |
read |
reporter |
|
List the branches of the repository |
read |
read |
reporter |
read |
read |
reporter |
|
write |
write |
GitLab.com: developer Self-hosted GitLab: maintainer |
|
admin |
admin |
maintainer |
|
admin |
admin |
maintainer |
|
Checking the Git connection on bitrise.io |
admin |
admin |
maintainer |