-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add SPDX 2.3 support #13
Conversation
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
This commit introduces a document model to handle SPDX 2.2 and 2.3 packages. The model is intended to avoid code duplication in the application while working with the SPDX libraries. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Thanks so much for this PR. I'm going to delay merging until very early January, as I'm hoping to spend time away from coding for a bit. If I cave during this vacation.. it might make it in earlier, but wanted to set some expectations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Few minor comments. Thanks for adding 2.3 support. :D
Hey @puerco . Just checking in to see if I should pick this PR up and carry it forward or if you're planning to make the changes. Thanks again for getting it this far. :) |
This PR adds SPDX 2.3 support SBOM Scorecard.
While the number of SPDX fields in use is still low, we can create an abstract document model we can use to test against.
The main test report has been modified to use the abstract document. The
document.go
package lays the groundwork for the extensible doc model and adds a few functions to read and populate the common model with the fields the report cares about. The abstract document can be expanded to add more fields as the tests get more sophisticated.A simple test of the new loader and test SBOMs are included.