Configure Mend for GitHub.com Code Source
Overview
Mend for GitHub.com Code Source offers several parameters to configure its functionality.
Getting it done
Configuration at the local repository level is done via the .whitesource file. To set up your configuration file for Code Source, see the Repository Parameters section provided in this documentation. Below is an example of fine-tuning Code Source within a repository’s .whitesource file:
{
"scanSettings": {
"baseBranches": ["development"]
},
"imageSettings": {
"imageTracing": {
"enableImageTracingPR": true,
"addDockerfilePath": true,
"addRepositoryCoordinates": true
}
}
}
Note: For global configuration, parameters are set via the repo-config.json file. See our Set up a global configuration for Mend for GitHub.com documentation for more information.
Reference
Repository Parameters
The parameters provided in this article are necessary to properly configure the Code Source feature.
Note: For the full set of Mend for GitHub.com configurations across our other solutions, visit the relevant documentation below:
Scan Settings (scanSettings)
Parameter | Type | Description |
---|---|---|
| Array | Optional. Default Value: Example usage:
CODE
This will set both Note:
|
Container image settings (imageSettings)
Parameter | Type | Description |
| Boolean | Optional. Default Value:
|
| Boolean | Optional. Default Value:
The format of the Dockerfile label is:
CODE
|
| Boolean | Optional. Default Value:
The format of the Dockerfile label is:
CODE
|