To integrate a Black Duck Security Scan Extension pipeline with Software Risk Manager a workflow can be configured to run scans that perform both SCA and SAST assessments. This provides comprehensive security analysis for applications.
For an introduction to Software Risk Manager follow the interactive tutorial.
Prerequisites
The following reading is recommended before starting this quickstart:
- Install the Black Duck Security Scan Extension into the ADO organization.
- For security reasons, it is advisable not to store credentials directly in the pipeline. The recommended approach is to use secured variables.
- Note: The Black Duck Security Scan Extension integrates with Software Risk Manager via Bridge CLI. Additional scan configuration options not available through the template's 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 SRM_URLVariable Software Risk Manager Server URL https://server.blackducksrm.comSRM_APIKEYSecret Software Risk Manager API Token REPLACE_WITH_YOUR_API_TOKEN- Software Risk Manager supports both compiled and interpreted languages. For compiled languages that use a build system (such as C++, Java, etc.), Software Risk Manager must be configured with build and clean commands to capture and analyze the build for SAST analysis.
- 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 Software Risk Manager to capture and analyze the build for compiled languages.
Instructions
Troubleshooting and support
srm_branch_parent parameter has not been set correctly.When scanning new non-default branches, e.g. develop, the srm_branch_parent parameter must be set to the name of the default branch, e.g. main. An example is shown in the Quickstart code example in the Instructions section.
For further troubleshooting, set the include_diagnostics parameter to true. Access and download the artifacts from the pipeline's job summary page ().