Skip to main content

CDXGEN

This scanner component generates a CycloneDX SBOM from source code.

Read more about what it does on the CDXgen homepage and GitHub repo.

After generating the SBOM cdxgen sends it to a remote Dependency Track. This component does not do anything else currently.

How to use with Smithy

Open-Source

# file ./my-workflow/workflow.yml
description: Workflow scanning with cdxgen
name: cdxgen
components:
- component: ghcr.io/smithy-security/smithy/manifests/components/targets/git-clone:v1.3.2
- component: ghcr.io/smithy-security/smithy/manifests/components/scanners/cdxgen:v1.2.2
  1. Configure the run parameters of the component in the overrides file
# file: ./my-workflow/overrides.yaml
git-clone:
- name: "repo_url"
type: "string"
value: "https://github.com/sqreen/go-dvwa"
cdxgen:
- name: "backend_server_url"
type: "string"
value: ""
- name: "api_key"
type: "string"
value: ""
- name: "project_name"
type: "string"
value: ""
- name: "project_version"
type: "string"
value: ""

SaaS

  1. In the Smithy UI, open the page to create a new workflow.
  2. Find the CDXGEN in the Producers dropdown.
  3. Configure the parameters in the form on the right

Options

You can configure this component with the following options. The options that have a default value are optional:

Option NameDescriptionDefaultType
backend_server_urlDependency Track API URL (at the time of writing the api and the frontend have different ports)""String
api_keyDependency Track API Key""String
project_nameProject Name as it appears on Dependency Track""String
project_versionProject Version as it appears on Dependency Track or empty if you want a new one created""String