To integrate a Black Duck Security Scan Extension pipeline with Coverity a full scan should be run followed by Pull Request scans. A Pull Request scan discovers new issues on the feature branch which are not on the target branch.
For further details follow the interactive tutorial for integrating Coverity with Black Duck Security Scan Extension.
Prerequisites
-
The following reading is recommended before starting this quickstart:
- Install the Black Duck Security Scan Extension into the ADO organization.
- An Azure Access Token with sufficient privileges for contributing to Pull Requests to allow the pipeline to inject Pull Request review comments.
- For security reasons, it is advisable not to store credentials directly in the pipeline. The recommended approach is to use secured variables.
- The following Black Duck Security Scan Extension parameters are required to enable injecting review comments into Pull Requests:Important: Pull Request comments will not be injected if these parameters and the prerequisites are not configured.
Parameter Description Example coverity_prcomment_enabledWhen true, this enables PR comments."true"azure_tokenAn Azure Access Token required to inject review comments. $(System.AccessToken)Note: The Black Duck Security Scan Extension integrates with Coverity via Bridge CLI. Additional scan configuration options not available through the ADO Extension Coverity parameter set can be specified by defining relevant Bridge CLI environment variables within the workflow job. -
Add the following secrets and variables ():
Variable Type Description Example COVERITY_URLVariable Coverity Server URL https://coverity.blackduck.comCOV_USERSecret Coverity Username REPLACE_WITH_YOUR_USERNAMECOVERITY_PASSPHRASESecret Coverity Passphrase REPLACE_WITH_YOUR_PASSPHRASE - Coverity requires additional configuration for compiled languages. For languages that use a build system (such as C++, Java, etc.), Coverity must be configured with build and clean commands to capture and analyze the build.
- The instructions below use pipeline parameters to specify build and clean commands.
- See Using Bridge with compiled languages for an explanation of the various methods available for configuring Bridge to integrate with Coverity to capture and analyze the build for compiled languages.
Instructions
Troubleshooting and support
coverity_local parameter should be uncommented in the quickstart code example.Setting the coverity_local parameter to true enables the full analysis at the client. Subsequently, the scan and analysis will be performed locally by the pipeline. For further details relating to the different Coverity deployment models supported, please refer to Coverity Deployment Architecture.