...
Ensure that you have already integrated the relevant repository platform with WhiteSource. If needed, refer to the installation sections of the relevant platform below:
Enabling the Global Configuration
(Only for Self-Managed integrations) Create a new organization (GitHub Enterprise), Group (Gitlab Server), or Project (Bitbucket Server/Data Center) named whitesource-config (the name must be exactly as specified here) in your integrated repository platform.
Create a new repository named whitesource-config (the name must be exactly as specified here). In Self-Managed integrations, this repository needs to be inside the whitesource-config entity you created in the previous step.
Add the new whitesource-config repository to your integration. Based on your relevant platform, refer to the correct section:
The whitesource-config repository will now contain a README file and two new configuration files (automatically created by the integration), repo-config.json and global-config.json. Configure these files by referring to the following sections and then continue in this procedure.
Add repositories you want WhiteSource to scan, to your integration.
...
This configuration template file is a JSON formatted file that will be applied globally to each newly selected integrated repository. It provides configurable parameters for a WhiteSource scan. All new integrated repositories will inherit the configuration set in this file, unless explicitly overridden by a local .whitesource file in the relevant repository. Refer to the following sections for information on which parameters can be added to the repo-config.json file:
...
This global configuration file is a JSON-formatted file where you can define global configurations for the integration. The following parameters can be provided:
General Parameters
Parameter | Type | Description | Required | Default |
---|---|---|---|---|
repoConfigMode | String | The configuration mode to be used on all integrated repositories. There are three options:
| Yes | createOnboardingPR |
repoConfigFileName | String | It is possible to rename the .whitesource configuration file added to an integrated repository. NOTES:
| No | .whitesource |
Ignored Repos (ignoredRepos)
Parameter | Type | Description | Required | Default | ||
---|---|---|---|---|---|---|
exactNames | Array | Provide a list of specific repositories to ignore from the integration. For example:
| No | Empty |
...