-
-
Notifications
You must be signed in to change notification settings - Fork 255
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 cyclonedx-lib build and --create-sbom option #2805
Conversation
e05e13a
to
f38b344
Compare
Signed-off-by: Andrew Leonard <[email protected]>
f38b344
to
d7256ef
Compare
run with --create-sbom: https://ci.adoptopenjdk.net/view/work-in-progress/job/andrew-cyclonedx/27/console
|
run tests |
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.
LGTM (posed a question, but its not meant as a blocking question?)
@smlambert thanks. Did you submit the review comment? I can't see the question? |
Signed-off-by: Andrew Leonard <[email protected]>
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.
Thanks - as you said we can revisit if necessary in the future, but I think it is cleaner this way
Hmm, thought I submitted it, but it was a question on how generic can the class be... |
@smlambert ah yes, I did wonder about the "name" myself for that reason... kept Temurin in the name as it's in a repo called temurin-build ... |
Download the necessary CycloneDX libraries and dependencies, and build a TemurinGenSBOM.java app framework.
Added a new BUILD_ARGS --create-sbom, default is "false", which when set builds the library and invokes TemurinGenSBOM at the end of the build.
CycloneDX and dependent libraries and licenses:
cyclonedx-core-java : v5.0.4 : Apache License, Version 2.0
jackson-core : v2.12.4 : Apache License, Version 2.0
jackson-dataformat-xml : v2.12.4 : Apache License, Version 2.0
jackson-databind : v2.12.4 : Apache License, Version 2.0
jackson-annotations : v2.12.4 : Apache License, Version 2.0
json-schema-validator : v1.0.58 : Apache License, Version 2.0
commons-codec : v1.15 : Apache License, Version 2.0
commons-io : v2.11.0 : Apache License, Version 2.0
github-package-url : v1.4.0 : MIT License
TemurinGenSOM is currently just a dummy implementation, that prints the args and creates a dummy test SBOM.
Signed-off-by: Andrew Leonard [email protected]