Providers
Ghost supports the following source code providers:After adding a connection, Ghost will automatically discover repositories and begin collection metadata within a few
minutes.
GitHub
To install the Ghost GitHub app, you must link your GitHub account to your Ghost account first. This is a one-time
step that can be performed in the Settings view under Linked Accounts.
Access | Resources |
---|---|
Read | Code and metadata |
Read + Write | Pull requests |
Read + Write | Check statuses |
Read + Write | Commit statuses |
GitLab
To add a GitLab connection, first create a service account, then create a personal access token. Permissions The GitLab personal access token must have the following scope:Scope | Resources |
---|---|
read_api | Read access to the scoped group |
- Group path: The path to your GitLab group. If your Gitlab URL is
https://gitlab.com/ghost/mygroup
, the group path isghost/mygroup
. - URL (optional): The URL of your GitLab instance. Only required if your GitLab instance is not hosted at
https://gitlab.com
. - Personal Access Token: The personal access token to use for the service account.
Bitbucket
To add a Bitbucket connection, first create a personal access token. Permissions The Bitbucket personal access token must have the following scope:Access | Resources |
---|---|
Read | Projects |
Read | Repositories |
- Workspace ID: The ID of your Bitbucket workspace. If your Bitbucket URL is
https://bitbucket.org/ghost/myrepo
, the workspace ID isghost
. - Access Token: The personal access token to use for the service account.
Azure DevOps
To add an Azure DevOps connection, first create a personal access token. Permissions The Azure DevOps personal access token must have the following scope:Access | Resources |
---|---|
Read | Code |
Read | Project and Team |
- Organization URL: The URL of your Azure DevOps organization. If your Azure DevOps URL is
https://dev.azure.com/ghost
, the organization URL ishttps://dev.azure.com/ghost
. - Personal Access Token: The personal access token to use for the service account.