-
-
Notifications
You must be signed in to change notification settings - Fork 249
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 support to validate sbom is valid before publish #3018
Comments
some thoughts for what we can implement:
|
|
@zdtsw @smlambert @andrew-m-leonard @sxa
I need advice am probably assuming the impossible |
There are several ways to get CycloneDX onto the test machines during a smoke test, and I think we should explore the pros and cons of these options:
Mentioned in Slack thread, there are many examples of other tests that setup dependencies in their build.xml (ant script) file (both pre-built and source code examples). If we do 1 or 2, we add a new ant target in https://github.com/adoptium/temurin-build/blob/master/test/functional/buildAndPackage/build.xml, perhaps called |
Ok, from various Slack discussions
We also want to create a diagram of the workflow we expect to create, and discuss how the SBOMTest can be extended to test other aspects of the SBOM. I will add some diagrams shortly, to initiate discussion. |
Just to make it more clear (since there is some misunderstanding of which sub-command should be used in the context of this issue): These two are doing different operations on sbom. |
We actually do sign the SBOM (described in #3158 (comment)), just not in the way that we want to (preferred way described in #3158 (comment)). But as mentioned in a private Slack chat, I suspect that SBOMTest will eventually have more checks inside of it (much like other smoke tests have more than one test method within them): |
For SBOM Test, we can first create it as a standalone test (that can be run from a Grinder job in Jenkins), then we can later incorporate it into the build pipeline (via a Post-build job, shown in the following diagram as Task 1 and relating to adoptium/ci-jenkins-pipelines#548). |
@smlambert can I take up this? |
@smlambert , how are we planning to finish up with this? |
hi @julian55455 ! We can pick up it up from here. I have the learnings from your branch and will plan to create a fresh branch to run the test. Thanks for all of your investigation and learnings on this topic! |
@smlambert Great, Just incase there is need for help, Am in |
To ensure sbom.json we release is valid by cyclonedx, we can use cyclonedx-cli to validate in our build system.
another option is https://github.com/IBM/sbom-utility
Part of #3013
The text was updated successfully, but these errors were encountered: