Skip to main content
Skip table of contents

Scanning Remote Repositories

Overview

For customers using SCM (Git, SVN, Mercurial), refer here for the relevant settings.

If the source code is not located on your machine, it is possible to provide connection information to your remote repository using Git, SVN or Mercurial. Note the following:

  • Only descriptive information is sent to our servers. All of the processing is done locally on your machine.

  • Dimensions CM is also supported by using either Git via Git Connector or Subversion via CM Bridge. 

  • You cannot scan both a local repository and a remote repository simultaneously. If you are intending to scan a local repository and not a remote repository, then use the -d parameter instead of the SCM parameters that are described below. 

Prerequisites

The scm client must be installed on your machine in order to successfully connect to your repository:

Mend also supports on-premises installations of repositories. 

Usage in Different Repository Types

  • For Git repositories, provide the repository URL and the branch or tag name. If no branch or tag is defined, it will default to the 'master' branch.

  • For SVN repositories, provide the URL for the specific trunk, branch or tag. If no branch or tag is defined, it will default to the 'trunk' branch.

  • For Mercurial repositories, provide the repository URL and the branch or tag name. If no is branch or tag is defined, it will default to the 'master' branch.

NOTE: If local files are to be scanned, then remove or comment out the scm parameters.

Multiple Remote Repositories

Multiple remote repositories can be scanned by creating a JSON file, similar to the following example:

CODE
{

"scmRepositories":[

    { "url":"path/to/remotreRepository1", "branch":"ChooseBranch", "tag":"ChooseTag" },

    { "url":"path/to/remotreRepository2", "branch":"master", "tag":"0.2" }

    ]

}

Remote Repository (SSH)

SSH is currently supported only for Git repositories.

Set the scm.ppk property to your private key file path and set the scm.pass property to the passphrase of the private key. If there are none, then leave empty.

Proxy for Remote Repository

If you have a proxy for your remote repositories, add these java parameters:

CODE
-Dhttps.proxyHost=PROXY_HOST -Dhttps.proxyPort=PROXY_PROT

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.