Seamlessly connect your source code repositories to Ghost to automatically discover repositories for deep code analysis by the Exorcist security analysis engine.
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.
To add a GitHub connection, install the Ghost GitHub app and choose which
repositiories to grant access to the Ghost Platform.PermissionsThe Ghost GitHub app requires the following permissions:
Access
Resources
Read
Code and metadata
Read + Write
Pull requests
Read + Write
Check statuses
Read + Write
Commit statuses
ConnectionTo install the Ghost GitHub app, you need to be an admin of a GitHub organization. If you are not a
GitHub organization admin, you can request the Ghost GitHub app to be installed by an organization
admin. Once the app installation is approved, the installation will complete automatically.
To add a GitLab connection, first create a service account,
then create a personal access token.PermissionsThe GitLab access token must have the role reporter or higher with the following scopes assigned:
Scope
Resources
read_api
Read access to the scoped group API
read_repository
Read access to the projects
ConnectionTo create the connection, go to Connections click the “New Connection” button.Select “GitLab” and provide the following information:
Group path: The path to your GitLab group. If your Gitlab URL is https://gitlab.com/ghost/mygroup, the group path is ghost/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.
Click the “Save connection” button to create the connection.
To add an Azure DevOps connection, first create a personal access token.PermissionsThe Azure DevOps personal access token must have the following scope:
Access
Resources
Read
Code
Read
Project and Team
ConnectionTo create the connection, go to Connections click the “New Connection” button.Select “Azure DevOps” and provide the following information:
Organization URL: The URL of your Azure DevOps organization. If your Azure DevOps URL is https://dev.azure.com/ghost, the organization URL is https://dev.azure.com/ghost.
Personal Access Token: The personal access token to use for the service account.
Click the “Save connection” button to create the connection.
You can delete a connection by clicking the context menu () and selecting “Delete” in the Connections view.
Deleting a connection will disable automatic discovery and scanning of repos, but will not delete any existing repos or findings.