Add SCM Token Mode
Overview
Mobb supports on-premise repositories as explained in the system requirements. However, to analyze an on-premise repository, the SCM token must be added to your Mobb account to grant Mobb access to read and write to your repository (To run analysis and commit fixes). This task can either be done on the Mobb UI as explained here, or via the Mobb CLI.
To add the SCM token via the CLI, you can use the add-scm-token
mode. To learn more about what's required for this mode, you can run the following command:
Output
Parameters:
--scm-type Description: SCM type [required] [choices: "GitHub", "GitLab", "Ado", "Bitbucket"]
--url Description: URL of the repository (used in GitHub, GitLab, Ado, Bitbucket) [string] [required]
--token Description: SCM API token [string] [required]
--organization Description: Organization name in SCM (used in Azure DevOps) [string]
--refresh-token Description: SCM refresh token (used in GitLab) [string]
--api-key Description: Mobb authentication api-key [string]
--help Description: Show help [boolean]
Last updated
Was this helpful?