Source Controls
Introduction
Vito uses source controls to pull your source codes for the websites you install. It also uses to set up hooks for auto deployments.
Supported Providers
- GitHub
- Gitlab (Cloud and Self-hosted)
- Bitbucket
Required API Permissions
Vito connects to the source control providers via their APIs. To connect to the source control providers the following information is required:
Github
Generate a personal access token on GitHub settings of your account and give it full repository control and git hook admin.
Administration, Contents and Webhooks scopes.Gitlab
write_repository, api permissions.Bitbucket (Deprecated)
Create an App Password on your Bitbucket account and give it repository and webhook admin permissions.
Vito will ask for username and password to connect to Bitbucket.
The username field when connecting to Vito will be your account's username and the password will be the password you created using App Passwords.
Bitbucket V2
This is a new source control provider for Bitbucket which is using Oauth Consumers of Bitbucket.
Oauth Consumers and add a new consumer.This is a private consumer checkbox.Then check the following permissions:
- Account: Read
- Webhooks: Read and Write
- Repositories: Read and Write
Key and Secret to connect to it in Vito.Scope
Source controls can be created under a specific project or globally.
If you create a source control under a project, it will only be available for that project.
If you create a source control globally, it will be available for all projects.
The reason of this feature is when you add a new user to VitoDeploy, you can control which source controls they can access.
In any scope, only you will have access to see or use that source control and other users of the project will not be able to see or use it.