Code Monkey home page Code Monkey logo

bd_export_spdx2.2's People

Contributors

matthewb66 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bd_export_spdx2.2's Issues

CPE not found in BOM exported in SPDX

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?

Support license type when two or more licenses for one component

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.

Incorrect external reference type category PACKAGE_MANAGER

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.

Additional modules required beyond pip3 install -i https://test.pypi.org/simple/ bd-export-spdx2.2

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.