This command lets you upload SBOM files to the Datadog intake endpoint.
- CycloneDX 1.4
- CycloneDX 1.5
- CycloneDX 1.6
datadog-ci sbom upload [--env] [--no-ci-tags] [--git-repository] [--debug] <path/to/sbom.json>--env(default:ci): represents the environment in which you want your sbom to appear.--no-ci-tags(default:false): ignore the automatic detection of continuous integration environment variables.--git-repository(default:current working directory): reports git environment context from the specified repository.--debug(default:false): output debug logs.
The following environment variables must be defined:
DD_SITE: the Datadog siteDD_APP_KEY: the App key to useDD_API_KEY: the API key to use
Optional environment variables:
DD_SUBDOMAIN: If you have a custom sub-domain enabled for your organization, set this variable to your subdomain. This ensures that the link to the Datadog Application, which the library logs after uploading, points to the correct location.
The Git context is resolved in the following order of priority:
- Current process location
- CI environment variables (can be disabled with:
--no-ci-tagsoption) - Explicitly provided Git repository (through --git-repository option)
- Override environment variables (
DD_GIT_*variables)
When developing software, you can try with the following command:
yarn launch sbom upload /path/to/sbom.jsonAdditional helpful documentation, links, and articles: