Optional configurations
Here are some additional optional configurations that can be used with Black Duck Security Scan Template:
- Install directory:
BRIDGECLI_INSTALL_DIRECTORY: Use this to specify the path to Bridge CLI.Note: If this is not explicitly specified, then the integration defaults to$HOME/bridge-cli. If the installed version of Bridge CLI is not the latest, then the latest version of Bridge CLI is downloaded unless you specify the version to use explicitly (as documented below). - Download URL:
BRIDGECLI_DOWNLOAD_URL: If provided, this specifies the URL to the Bridge CLI zip file to be downloaded from and used. Examples:BRIDGECLI_DOWNLOAD_URL: https://repo.blackduck.com/bds-integrations-release/com/blackduck/integration/bridge/binaries/bridge-cli-bundle/latest/bridge-cli-bundle-win64.ziporBRIDGECLI_DOWNLOAD_URL: https://repo.blackduck.com/bds-integrations-release/com/blackduck/integration/bridge/binaries/bridge-cli-bundle/3.11.0/bridge-cli-bundle-3.11.0-win64.zipNote: IfBRIDGECLI_DOWNLOAD_URLis not provided, Black Duck Security Scan Template will download the latest version of Bridge CLI from repo.blackduck.com. - Download version:
BRIDGECLI_DOWNLOAD_VERSION: Use this to specify the Bridge CLI version to use. If provided, the specified version of Bridge CLI will be automatically downloaded from repo.blackduck.com and used. If not, the latest version is downloaded and used. Example:BRIDGECLI_DOWNLOAD_VERSION: "1.0.0"Note: If bothBRIDGECLI_DOWNLOAD_VERSIONandBRIDGECLI_DOWNLOAD_URLare provided,BRIDGECLI_DOWNLOAD_URLtakes precedence. - Using a proxy through GitLab Template's environment:Black Duck Security Scan Template supports the following environment variables:
Table 1. Proxy parameters Variable Description Example HTTPS_PROXY/https_proxyProxy URL for HTTPS traffic. You can include basic authentication if required. Use this when target URL is HTTPS. https://proxy.comhttps://192.168.1.1:8080https://username:password@proxy.com
HTTP_PROXY/http_proxyProxy URL for HTTP traffic. You can include basic authentication if required. Use this when target URL is HTTP. http://proxy.comhttp://192.168.1.1:8080http://username:password@proxy.com
NO_PROXY/no_proxyA comma-separated list of hosts or IP addresses that should bypass the proxy. Some clients only honor IP addresses when connections are made directly to the IP rather than a hostname. example.comexample.com,myserver.local:443,example.org
Note: Currently Coverity Local Scan is not supported with Proxy configuration.You may use the proxy parameters with secrets as shown here:variables: HTTPS_PROXY: $HTTPS_PROXY # Proxy URL for HTTPS traffic HTTP_PROXY: $HTTP_PROXY # Proxy URL for HTTP traffic NO_PROXY: $NO_PROXY_LIST # Comma-separated list of hosts or IP addresses that should bypass the proxyNote: Proxy variables in a GitLab pipeline can either be defined globally (available to all stages) or scoped to a single stage (available only within that stage).If you are using a proxy with authentication, follow these guidelines:- Proxy with auth: Users need to pass a username and password for authentication.
Example: http://user:password@proxyIP:proxyPort/
- Proxy with no auth: Users do not need to pass credentials for authentication.
Example: http://proxyIP:proxyPort/
- For further information: https://docs.gitlab.com/runner/configuration/proxy/
- CURL Redirection limit:
MAX_REDIRECTS: Use this environment variable to specify the maximum number of times a request can be automatically redirected to a new URL before the process is aborted.Default:30(default curl behaviour)variables: MAX_REDIRECTS: 40 - Include diagnostics:
INCLUDE_DIAGNOSTICS: When set totrue, Bridge CLI diagnostic files are created.Note: While including Bridge CLI diagnostic files, default expiry time for uploaded artifacts is 30 days. Refer to SCM documentation for more details : https://docs.gitlab.com/ee/ci/jobs/job_artifacts.html. - Mark build status:
MARK_BUILD_STATUS: Defines the build status when policy-violating issues are detected.Default:
failed.Supported values:
failed, andsuccess.Note:MARK_BUILD_STATUSis applicable only for return status8. For any other return value,MARK_BUILD_STATUSis ignored.