matthewb66 / bd_export_spdx2.2 Goto Github PK
View Code? Open in Web Editor NEWThe script is designed to export an SPDX version 2.2 JSON file from a Black Duck project.
License: Apache License 2.0
The script is designed to export an SPDX version 2.2 JSON file from a Black Duck project.
License: Apache License 2.0
Please check the following:
The generated SPDX2.2 is missing the minimum required SBOM elements for an SPDX format. Header must contain DocumentName, which isn’t present in the SPDX file.
Thanks!
Andy
I used this tool to generate BOM from Black Duck in SPDX 2.2 and could not find CPEs included in the BOM. How can I export a BOM which includes CPEs in it?
If there are more than one license per one component, the bd_export supports only conjuctive joining of licenses (i.e. '(MIT AND Apache-2.0)' - AND is here hardcoded).
It would be nice to support also OR (disjunctive) type of licenses.
There is a licenseType attribute with values CONJUCTIVE and DISJUNCTIVE which can be used for that.
I was just comparing SBOMs generated by Trivy, this utility and the one integrated into Black Duck itself and I see that this utility and Black Duck generate an external reference type category of PACKAGE_MANAGER, however the JSON schema says it should be PACKAGE-MANAGER, i.e. the separator is a hyphen, not an underscore.
It would be nice to have support for exporting as .spdx instead of just .json.
This will make it easier to integrate this tool into other toolchains.
bd-export-spdx2.2 requires the aiohttp and lxml modules and they are not installed with bd-export-spdx2.2 using test.pypi.org/simple.
However, when I loaded those modules and attempted to run bd-export-spdx2.2, I got:
2021-10-31 16:17:50,334:INFO:Using a session with a 15 second timeout and up to 3 retries per request
BLACK DUCK SPDX EXPORT SCRIPT VERSION 0.21
2021-10-31 16:17:50,336:WARNING:ssl verification disabled, connection insecure. do NOT use verify=False in production!
2021-10-31 16:17:50,416:INFO:success: auth granted until 2021-10-31 18:17:50.413098-04:00
Working on project '' version ''
Getting component list ... (67)
Traceback (most recent call last):
File "/usr/local/bin/bd_export_spdx", line 11, in
sys.exit(run())
File "/usr/local/lib/python3.6/site-packages/export_spdx/main.py", line 133, in run
process.process_project(project, version, toppackage, hierarchical_bom, bearer_token)
File "/usr/local/lib/python3.6/site-packages/export_spdx/process.py", line 239, in process_project
comp_data_dict = asyncio.run(async_main(bom_compsdict, bearer_token, version))
AttributeError: module 'asyncio' has no attribute 'run'
FYI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.