-
Notifications
You must be signed in to change notification settings - Fork 7
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
Draft: support clearing reports and CLIs in SBOM and in new command "bom downloadattachments" #33
base: main
Are you sure you want to change the base?
Conversation
b1a5689
to
2ee751e
Compare
2ee751e
to
177347e
Compare
@tngraf, while this is far from complete, I would like to ask for your opinion about storing the attachment information in the SBOM. For now,
I think it's a good idea to store the And the same problem applies to later download step, where I'd also like to store the per-attachment information like In
This however won't work if I have multiple CLI and report attachments. So I can think about the following options:
All the options sound a bit ugly to me... :) |
e2e1d69
to
0621d97
Compare
f8c7a50
to
d4e70ef
Compare
140f122
to
e8ce557
Compare
038fd52
to
49f551a
Compare
I integrated the current implementation of "project createbom" and "bom downloadattachments" into some internal attachment import scripts (https://code.siemens.com/linux/distro-clearing/debian) where it seems to work well. So I consider this part as "implemented" (tm), but I'm still unsure about the way how to store additional data for the attachments. I now went for creating a proprietary JSON "control file" with similar syntax to the output of "project getlicenseinfo" as described above. Another possibility would be to create some kind of "extended BOM" adding the clearing reports and CLI files as own CycloneDX components of type "file" and linking to them using the |
028b02b
to
6473fc4
Compare
6473fc4
to
100828f
Compare
5b7596a
to
a09a773
Compare
a09a773
to
be4456f
Compare
2640119
to
551f8c5
Compare
@tngraf and just had a quick look on the MR and decided to continue with the two-file approach. Open TODOs:
|
My first try to store multiple purls separated by blanks (violating the CycloneDX spec) and asking the user to fix the SBOM probably was a bad idea from the beginning. Due to libary updates, the subsequent PURLs were now encoded as part of the qualifiers which was hard to understand and parse. So better keep the purl empty and store the list in a separate property "purl_list". Fixes #87
This can be used to check meta data of attachments before feeding the list into "bom downloadAttachments".
This unfortunately requires retrieving attachment info for each attachment.
551f8c5
to
eb404c5
Compare
First draft for #24