Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 3.95 KB

File metadata and controls

79 lines (49 loc) · 3.95 KB
copyright
years
2025, 2026
lastupdated 2026-07-02
keywords DevSecOps, IBM Cloud, compliance,CRA, SBOM
subcollection devsecops

{{site.data.keyword.attribute-definition-list}}

With Code Risk Analyzer (CRA) being deprecated, Syft and Grype scans are alternative to generate SBOM. Refer to Opting out of Code Risk Analyzer scans to disable CRA BOM generation. {: note}

Configuring CRA SBOM Generation

{: #devsecops-cra-sbom-generate}

Code Risk Analyzer SBOM (Software Bill of Materials) is a structured inventory of all components, dependencies, and licenses in a software project generated by the Code Risk Analyser(CRA) tool. CRA SBOM follows the CycloneDX or SPDX standards to help ensure interoperability and accurate software supply chain visibility.

To learn more about SBOMs see Software Bill of Materials. {: shortdesc}

For more information on CRA SBOM for IBM Enterprise users, see CRA SBOM overview{: external}.

Generate the CRA SBOM

{: #cd-devsecops-cra-sbom-run-script}

CRA SBOM parameters

{: #cd-devsecops-cra-sbom-params-req}

The pipeline environment properties that are listed in the following table are used to customize the CRA SBOM generation.

Parameter name Description
cra-custom-script-path Path to a custom script to be run before CRA scanning. This script is sourced to provide the option to set environment variables in the context of the CRA BOM tool.
cra-docker-build-context If this flag is specified, Code Risk Analyzer uses the directory in the path parameter as the docker build context. The default value is false.
cra-docker-buildflags Customize docker build command for build stage scanning. The default value of the parameter is empty.
cra-dockerfile-pattern Ability to add Dockerfile with a different naming convention, such as enterprise-linux.Dockerfile
cra-gradle-exclude-configs Specifies which Gradle configurations to exclude dependencies in scanning. Example: runtimeClasspath,testCompileClasspath. The default value of the parameter is empty.
cra-ibmcloud-api-key Overwrites the ibmcloud-api-key that is used by the CRA tasks.
cra-maven-exclude-scopes Specifies which maven scopes to exclude dependencies in scanning. Example: test,compile. The default value of the parameter is empty.
cra-nodejs-create-package-lock Enable Code Risk Analyzer discovery to build the package-lock.json file for node.js repos. This parameter is set to false by default.
{: caption="CRA SBOM parameters" caption-side="top"}

Evidence and attachments

{: #cd-devsecops-cra-sbom-evid-attach}

The DevSecOps pipeline uploads evidence to the locker and includes the evidence in the evidence summary for Change Requests.

field value
tool type cra-bom
evidence type com.ibm.code_bom_check
asset type repo
attachments <native gitsecure SBOM>
attachments <cycloneDX package SBOM>
{: caption="Evidence fields and values" caption-side="top"}

Accessing your scan results

{: #cd-devsecops-cra-acc-results}

You can access your scan results by using the following method: