Skip to main content

CDXGEN

This producer component generates a CycloneDX SBOM from source code.

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

How to use with Smithy

Open-Source

  1. Add the Helm package to the pipeline settings:
---
# file: ./my-pipeline/kustomization.yaml
components:
- pkg:helm/smithy-security-oss-components/producer-cdxgen
  1. Optionally configure the run parameters of the component in the pipeline run file. All parameters are optional:
# file: ./my-pipeline/pipelinerun.yaml
---
...
spec:
...
params:
- name: producer-cdxgen-flags
value: []
- name: producer-cdxgen-fetch-license
value: "false"
- name: producer-cdxgen-github-token
value: ""
- name: producer-cdxgen-astgen-ignore-file-pattern
value: ""
- name: producer-cdxgen-astgen-ignore-dirs
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
producer-cdxgen-flagsAvailable flags: "debug" (to enable debug logging, defaults to false), "append" (append to output file instead of overwriting it, defaults to false)[]Array of Strings
producer-cdxgen-fetch-licenseWhether to fetch license information from the registry. Works for npm and golang only."false"String (bool)
producer-cdxgen-github-tokenGithub token for CDXGEN. Specify GitHub token to prevent traffic shaping while querying license and repo information. Read more here""String
producer-cdxgen-astgen-ignore-file-patternregex of files to ignore""String
producer-cdxgen-astgen-ignore-dirsregex of directories to ignore""String