{"id":20617829,"url":"https://github.com/cyclonedx/sbom-combiner","last_synced_at":"2025-05-10T03:32:54.877Z","repository":{"id":48891552,"uuid":"369259683","full_name":"CycloneDX/sbom-combiner","owner":"CycloneDX","description":"Lockheed Martin developed utility to combine multiple CycloneDX SBOMs","archived":false,"fork":false,"pushed_at":"2023-01-16T13:13:06.000Z","size":1157,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-04-10T18:32:04.722Z","etag":null,"topics":["bill-of-materials","bom","cyclonedx","owasp","sbom","software-bill-of-materials"],"latest_commit_sha":null,"homepage":"https://cyclonedx.org/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CycloneDX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-20T15:44:32.000Z","updated_at":"2022-09-07T06:49:47.000Z","dependencies_parsed_at":"2023-02-10T03:31:29.363Z","dependency_job_id":null,"html_url":"https://github.com/CycloneDX/sbom-combiner","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycloneDX%2Fsbom-combiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycloneDX%2Fsbom-combiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycloneDX%2Fsbom-combiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CycloneDX%2Fsbom-combiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CycloneDX","download_url":"https://codeload.github.com/CycloneDX/sbom-combiner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224911873,"owners_count":17390844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bill-of-materials","bom","cyclonedx","owasp","sbom","software-bill-of-materials"],"created_at":"2024-11-16T12:06:07.971Z","updated_at":"2024-11-16T12:06:08.712Z","avatar_url":"https://github.com/CycloneDX.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbom-combiner\nLockheed Martin developed utility to combine multiple SBOMs\n\nThis application is used to combine two or more Software Bill Of Materials (SBOM) commonly known as SBoms or Boms into a single Bom.\nIt uses the CycloneDx Schema, and can combine SBoms in either JSon or XML, and output either a JSon or XML Bom.  \n\n## Prerequisites\n- Open JDK11\n- Apache Maven 3.6.3 or greater installed \n- (Recommended) java IDE Eclipse with Subclipse 4.3.0 plug-in\n\n## Usage:\n\n### Build artifact via maven.\n### Maven Command\nmvn clean package\n\n### Run\nTo run as a standalone java application, you can look at the \"example.sh\" shell script for an example.\nYou can also use the provided \"combine.sh\" script as a pass through to the jar.  It assumes all the basic settings.\n\n### Help is available.   \n\u003cpre\u003e\n    ./combine.sh -h\n\u003c/pre\u003e\n\n### Help Output shows options for running the SBomCombiner application.\n\u003cpre\u003e\nusage: help\n    -d,     --dir       \u0026lt;arg\u0026gt;   (Optional) directory to get all SBoms from\n    -f,     --format    \u0026lt;arg\u0026gt;   (Optional) output file format, Valid values json, xml.  Default is json\n    -f1,    --sbom1     \u0026lt;arg\u0026gt;   (Optional) first SBom file\n    -f2,    --sbom2     \u0026lt;arg\u0026gt;   (Optional) second SBom file\n    -g,     --group     \u0026lt;arg\u0026gt;   (Optional) group name for the upper level Component of the combined SBom\n    -h,     --help              will print out the command line options.\n    -n,     --name      \u0026lt;arg\u0026gt;   (Optional) name of upper level component of the combined SBom\n    -o,     --output    \u0026lt;arg\u0026gt;   (Optional) output file name, default is combine.json or combine.xml\n    -t,     --type      \u0026lt;arg\u0026gt;   (Optional) Type of upper level component of the combined SBom.  Valid types are APPLICATION, CONTAINER, DEVICE, FILE, FIRMWARE, FRAMEWORK, LIBRARY, or OPERATING_SYSTEM.  Default value is CONTAINER.\n    -v      --version   \u0026lt;arg\u0026gt;   (Optional) Version of the upper level component of the combined SBom.\n\u003c/pre\u003e\n\n### Running SBomCombiner. \n### In this example it wil combine all files (xml, and json) from the directory ./test into an output.json (also in ./test) bom file.\n\u003cpre\u003e\n    ./combine.sh -d ./test -o ./test/output -f json\n\u003c/pre\u003e\n\n### In this example it will combine two files (sbomcommons.json, sbomcomparator.xml) both in the test directory into an ouptut.xml bom file.\n\u003cpre\u003e\n    ./combine.sh -f1 ./test/sbomcommons.json -f2 ./test/sbomcomparator.xml -o output -f xml\n\u003c/pre\u003e\n\n### In this example it wil combine all files (xml, and json) from the directory ./test into an output.xml (also in ./test) bom file.  Settings the upper level SBOM metadata Component's group, name, and version.\n\u003cpre\u003e\n    ./combine.sh -d ./test/ -o ./test/output -f xml -n SBOM -g com.lmco.efoss -v 2.0.3\n\u003c/pre\u003e\n\n## API:\n### You can also pull in the API and run it inside your application.\n\u003cpre\u003e\n    //sbomFiles is a list of strings that are the SBoms to combine.\n    Bom combinedSbom = SBomCombiner.combineSBoms(sbomFiles);\n\u003c/pre\u003e\n\n## License\n[licenses](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclonedx%2Fsbom-combiner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyclonedx%2Fsbom-combiner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclonedx%2Fsbom-combiner/lists"}