-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Option to add license text to SBOM result #256
Comments
this very feature request is similar to CycloneDX/cyclonedx-node-module#343 (comment) |
previous license text gathering implementation: https://github.com/CycloneDX/cyclonedx-node-module/blob/3.x/model/LicenseChoice.js#L72 |
reminder: npm6 had the unfortunately there is no such feature for the license. it needs to be gathered manually. |
feel free to open pull-requests to bring this feature to the tool. |
this very feature request is similar to CycloneDX/cyclonedx-javascript-library#404 |
Signed-off-by: Matthias Schiebel <matthias.schiebel@compart.com>
Signed-off-by: Matthias Schiebel <msl@compart.com>
Signed-off-by: Matthias Schiebel <msl@compart.com>
Signed-off-by: Matthias Schiebel <msl@compart.com>
Signed-off-by: Matthias Schiebel <msl@compart.com>
I am investigating which library could be used for license text extraction. 🔍
PS: if no lib nor scanner can be found, lets simply pull the license texts from files that seam appropriate. |
Similar to CycloneDX/cyclonedx-webpack-plugin#676 |
@stevespringett mentioned:
read: https://cyclonedx.org/news/cyclonedx-v1.3-released/#copyright-and-license-evidence |
after #726 is done, PS: or helper classes that return the proper base64-sting when |
I would love to help implement the feature, but I am not sure where this code would reside. For SPDX identifiers, we could parse the Could you give me some hints on where to start and what you expect as a maintainer? |
Is the spdx id based license template text really the expected thing to add as license text in the sbom? The actual project license contains things like copyright holders, date ranges etc that will not be part of the license template but are quite critical. E.g. one use case that comes to mind is reproducing all OSS licenses of dependencies that require you to do so for the user. |
SPDX licenses ID are already detected. a subroutine called by cyclonedx-node-npm/src/builders.ts Line 414 in 42208c6
yes, basically we could use it to detect all kinds of license files and addendum and notice and others. when it comes to the question "where do i put the detected license texts in the BOM", please read #256 (comment) I updated the acceptance criteria on the issue, so it is much clearer what to expect. implementation-wise an attachment can be anything that has a |
nope. goal is to collect evidence, not the template texts. see https://cyclonedx.org/news/cyclonedx-v1.3-released/#copyright-and-license-evidence I updated the acceptance criteria on the issue, so it is much clearer what to expect. |
A similar feature was added to the webpack plugin |
Signed-off-by: Matthias Schiebel <msl@compart.com> Signed-off-by: Christoph Uhland <42832096+cuhland@users.noreply.github.com>
Since this feature is nothing new, there is no need to reinvent the wheel. It is expected to simply copy existing art.
just in case: Please keep the scope of your PR, don't mix unrelated changes into a feature-PR |
Is your feature request related to a problem? Please describe.
For legal documentation, we need the original text of the licenses of components.
Describe the solution you'd like
An option to enable integration of the license-text in the BOM file, like the old @cyclonedx/bom package had, would be great to have again here.
read https://cyclonedx.org/news/cyclonedx-v1.3-released/#copyright-and-license-evidence
Acceptance criteria
--gather-license-evidence
(name to be discussed)regardless of SPDX license ID, SPDX license expression or named license, the deteced license texts should be added, each as an evidence
Examples:
@.evicence.licenses
@.name
would be 'License of : '@.text
would hold the testLICEN[CS]E*
NOTICE*
-- addendum for Apache-2.0 and othersNope, no license template is derived from package's declared SPDX license id.
Reason: license templates (like BSD clause 3) are designed to be modified (unlike others, like Apache2, which is not a template but a complete text)
The text was updated successfully, but these errors were encountered: