{"id":18638525,"url":"https://github.com/anthonyharrison/sbomdebt","last_synced_at":"2026-02-02T01:02:43.436Z","repository":{"id":250588378,"uuid":"808504293","full_name":"anthonyharrison/sbomdebt","owner":"anthonyharrison","description":"Determine the technical debt for a Software Bill of Materials (SBOM)","archived":false,"fork":false,"pushed_at":"2024-07-28T17:20:57.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-19T16:18:23.159Z","etag":null,"topics":["cyclonedx","devsecops","sbom","sbom-tool","security","spdx","technical-debt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonyharrison.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["anthonyharrison"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-05-31T07:55:15.000Z","updated_at":"2024-12-11T21:31:32.000Z","dependencies_parsed_at":"2024-07-28T17:32:21.507Z","dependency_job_id":"e7925660-14d4-4361-a490-d8fd1ee894ec","html_url":"https://github.com/anthonyharrison/sbomdebt","commit_stats":null,"previous_names":["anthonyharrison/sbomdebt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anthonyharrison/sbomdebt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyharrison%2Fsbomdebt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyharrison%2Fsbomdebt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyharrison%2Fsbomdebt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyharrison%2Fsbomdebt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonyharrison","download_url":"https://codeload.github.com/anthonyharrison/sbomdebt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonyharrison%2Fsbomdebt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28998208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T23:10:54.274Z","status":"ssl_error","status_checked_at":"2026-02-01T23:10:47.298Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cyclonedx","devsecops","sbom","sbom-tool","security","spdx","technical-debt"],"created_at":"2024-11-07T05:42:17.307Z","updated_at":"2026-02-02T01:02:43.414Z","avatar_url":"https://github.com/anthonyharrison.png","language":"Python","funding_links":["https://github.com/sponsors/anthonyharrison"],"categories":[],"sub_categories":[],"readme":"# SBOMDEBT\n\nSBOMDEBT reports on the technical debt of the contents of an SBOM (Software Bill of Materials) by performing a number of checks. SBOMs are supported in a number of formats including\n[SPDX](https://www.spdx.org) and [CycloneDX](https://www.cyclonedx.org).\n\n## Installation\n\nTo install use the following command:\n\n`pip install sbomdebt`\n\nAlternatively, just clone the repo and install dependencies using the following command:\n\n`pip install -U -r requirements.txt`\n\nThe tool requires Python 3 (3.8+). It is recommended to use a virtual python environment especially\nif you are using different versions of python. `virtualenv` is a tool for setting up virtual python environments which\nallows you to have all the dependencies for the tool set up in a single environment, or have different environments set\nup for testing using different versions of Python.\n\n## Usage\n\n```\nusage: sbomdebt [-h] [-i INPUT_FILE] [--updates UPDATES] [--verbose] [--debug] [-o OUTPUT_FILE] [-V]\n\nSBOMDebt reports on the technical debt of a SBOM.\n\noptions:\n  -h, --help            show this help message and exit\n  -V, --version         show program's version number and exit\n\nInput:\n  -i INPUT_FILE, --input-file INPUT_FILE\n                        name of SBOM file\n  --updates UPDATES     minimum number of updated versions to report (default: 2)\n  --verbose             verbose reporting\n\nOutput:\n  --debug               add debug information\n  -o OUTPUT_FILE, --output-file OUTPUT_FILE\n                        output filename (default: output to stdout)\n\n```\n\t\t\t\t\t\n## Operation\n\nThe `--input-file` option is used to specify the SBOM to be processed. The format of the SBOM is determined according to\nthe following filename conventions.\n\n| SBOM      | Format   | Filename extension |\n| --------- |----------|--------------------|\n| SPDX      | TagValue | .spdx              |\n| SPDX      | JSON     | .spdx.json         |\n| SPDX      | YAML     | .spdx.yaml         |\n| SPDX      | YAML     | .spdx.yml          |\n| CycloneDX | JSON     | .json              |\n| CycloneDX | XML      | .xml               |\n\n\nThe `--updates` option can be used to report packages with outstanding updates. The default value is 2 updates.\n\nThe `--verbose` option can be used to report the results of all the checks performed; the default is just report failed checks and summaries.\n\nThe `--output-file` option is used to control the destination of the output generated by the tool. The\ndefault is to report to the console but can be stored in a file (specified using `--output-file` option).\n\n### Package update checks\n\nThe checks for packages with outstanding updates are performed for packages within the following language ecosystems:\n\n- dart\n- go\n- java\n- javascript\n- .net\n- perl\n- python\n- r\n- ruby\n- rust\n- swift\n\n## Output File Format\n\nThe output file is in JSON format. The content depends on the contents of the SBOM and the specified command line options.\n\n```bash\nsbomdebt --input-file click.json --output-file click_analysis.json\n```\n\n```json\n{\n  \"sbom\": \"\u003c....\u003e\",\n  \"packages\": [\n    {\n      \"name\": \"click\",\n      \"current_version\": \"8.0.3\",\n      \"latest_version\": \"8.1.7\",\n      \"latest_date\": \"2023-08-17T17:29:10.000Z\",\n      \"updates\": 9\n    }\n  ],\n  \"package_count\": 1,\n  \"debt_count\": 1,\n  \"ratio\": 1.0\n}\n```\n\n```bash\nsbomdebt --input-file click.json --verbose --output-file click_analysis.json\n```\n\nThe addition of the `--verbose` option, results in the JSON file containing details of the available updates.\n\n```json\n{\n  \"sbom\": \"/root/Documents/git_repo/sbom_workbench/datastore/sbom/click.spdx\",\n  \"packages\": [\n    {\n      \"name\": \"click\",\n      \"current_version\": \"8.0.3\",\n      \"latest_version\": \"8.1.7\",\n      \"latest_date\": \"2023-08-17T17:29:10.000Z\",\n      \"updates\": 9,\n      \"package_updates\": [\n        [\n          \"8.1.7\",\n          \"2023-08-17T17:25:18.000Z\"\n        ],\n        [\n          \"8.1.6\",\n          \"2023-07-18T20:00:26.000Z\"\n        ],\n        [\n          \"8.1.5\",\n          \"2023-07-13T15:00:38.000Z\"\n        ],\n        [\n          \"8.1.4\",\n          \"2023-07-06T18:22:05.000Z\"\n        ],\n        [\n          \"8.1.3\",\n          \"2022-04-28T17:36:21.000Z\"\n        ],\n        [\n          \"8.1.2\",\n          \"2022-03-31T20:50:27.000Z\"\n        ],\n        [\n          \"8.1.1\",\n          \"2022-03-30T20:13:29.000Z\"\n        ],\n        [\n          \"8.1.0\",\n          \"2022-03-28T17:38:54.000Z\"\n        ],\n        [\n          \"8.0.4\",\n          \"2022-02-18T20:30:45.000Z\"\n        ]\n      ]\n    }\n  ],\n  \"package_count\": 1,\n  \"debt_count\": 1,\n  \"ratio\": 1.0\n}\n```\n\n## Return Values\n\nThe following values are returned:\n\n- -1 indicates SBOM file not specified\n- 0 indicates debt has been calculated\n\n## License\n\nLicensed under the Apache 2.0 License.\n\n## Limitations\n\nThe tool has the following limitations:\n\n- The latest version checks are only performed in an environment where access to external systems is available.\n\n- The latest version checks are only performed for components with a valid PURL\n\n- Invalid SBOMs will result in unpredictable results.\n\n## Feedback and Contributions\n\nBugs and feature requests can be made via GitHub Issues.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyharrison%2Fsbomdebt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonyharrison%2Fsbomdebt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonyharrison%2Fsbomdebt/lists"}