Learn more about software transparency and the role of SBOMs in your organization.
To export an SBOM you must first perform a successful endorctl scan. If you haven’t successfully scanned a project see quick start for more information.Endor Labs supports export in the CycloneDX format, VEX format, and SPDX format.
Export an SBOM through the Endor Labs user interface
When you export an SBOM at the project level, it includes all the packages in the project and all the package versions. This allows you to combine the SBOMs of multiple packages and versions into a single SBOM. A consolidated SBOM for the project enables quick identification and assessment of vulnerabilities across all software components.
You can export SBOM of the project in the CycloneDX format.
Select Projects from the left sidebar.
Select the project for which to create an SBOM.
Click Export SBOM in the top right-hand corner.
Select CycloneDX.
Choose whether to export as an application or a library.If you choose to export as an application, enter an application name.
Select the output format and type of SBOM you would like to generate in FILE FORMAT.
Click Add More to select the packages and package versions you want to include in the SBOM.If you do not select specific packages, the SBOM will include information for all packages and package versions.You can filter by ecosystem to select the type of packages to include in the SBOM.You can also search and select multiple package versions of the same package.
Click Export SBOM.A file containing the SBOM will download from your browser.
You can export SBOM of the project in the SPDX format.
Select Projects from the left sidebar.
Select the project for which to create an SBOM.
Click Export SBOM in the top right-hand corner.
Select SPDX.
Enter the name of your application in Application Name.
Select the output format and type of SBOM you would like to generate in File Format.
Click Add More to select the packages and package versions you want to include in the SBOM.If you do not select specific packages, the SBOM will include information for all packages and package versions.You can filter by ecosystem to select the type of packages to include in the SBOM.You can also search and select multiple package versions of the same package.
Click Export SBOM.A file containing the SBOM will download from your browser.
You can use the following options with the SBOM export command.You can export an SBOM in CycloneDX or SPDX format using endorctl, for a single package version or across multiple package versions.
Export SBOM with a single package version
Export SBOM in CycloneDX format with multiple package versions
Export SBOM in SPDX format with multiple package versions
To export an SBOM you will need the package version name for which you’d like to create an SBOM or its UUID. You can also export an SBOM with multiple package versions. To export an SBOM with multiple package versions, you need the package version UUIDs or the project name.Pass the package name or UUID to the command endorctl sbom export using the --package-version-name or --uuid flags.To export an SBOM, you must first retrieve the package version name through the API.You can easily export a reference package name and the scanned version you’d like to export as environment variables.
To export multiple package versions in an SBOM, you need the UUIDs of package versions, or the name or UUID of the project to which the package versions belong.To create an SBOM based on project details, either provide the project UUID with the --project-uuid flag or the project name with the --project-name flag. You also need to provide a name for the package with the --app-name flag.Run the command to create an SBOM with multiple package versions using the project UUID.
endorctl sbom export -n test --project-name=actions-hu/app-java-demo --app-name=actions-hu/app-java-demo >> cyclonedx-sbom.json
Generate an SBOM based on package version UUIDs, provide the package version UUIDs with the --package-version-uuids flag. You also need to provide a name for the package with the --app-name flag.
endorctl sbom export -n <Namespace> --package-version-uuids=<Package Version UUID 1>,<Package Version UUID 2>,... <Package Version UUID N> --app-name=<Application Name> >> <SBOM Name>.json
For example:
endorctl sbom export -n test --package-version-uuids=66e345c340669666c22979d6,89f456c340669666c229854a,43a56b1340669666c289d4a2 --app-name=actions-hu/app-java-demo >> spdx-sbom.json
To export multiple package versions in an SBOM, you need the UUIDs of package versions, or the name or UUID of the project to which the package versions belong.To create an SBOM based on project details, either provide the project UUID with the --project-uuid flag or the project name with the --project-name flag. You also need to provide a name for the package with the --app-name flag.Run the command to create an SBOM with multiple package versions using the project UUID.
Generate an SBOM based on package version UUIDs, provide the package version UUIDs with the --package-version-uuids flag. You also need to provide a name for the package with the --app-name flag.
endorctl sbom export --format spdx --output-format=json -n <Namespace> --package-version-uuids=<Package Version UUID 1>,<Package Version UUID 2>,... <Package Version UUID N> --app-name=<Application Name> >> <SBOM Name>.json
Endor Labs supports export in the CycloneDX format.The following table lists the mandatory and some optional fields in the SBOM file that Endor Labs exports.
CycloneDX SBOMs generated by Endor Labs include patch data for components that use an Endor patch. This allows consumers of the SBOM to see exactly which upstream version was patched, what changes were applied, and which vulnerabilities those patches resolve.The following fields describe how patch data appears in the exported SBOM.The following example shows a patched component in a CycloneDX SBOM.