-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18590. Publish SBOM artifacts #5555
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
Conversation
|
cc @steveloughran and @cnauroth |
ayushtkn
left a comment
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.
Should we do this only when -Pdist is active, during normal dev work, no need for this?, we can save time there...
|
Do you have a regular test pipeline with |
|
Anyway, I moved it to under |
|
Thanx, We don't have a regular test with -Pdist, I thought this was required only during release time, we moved this to -Pdist in hive as well, recently in favour of saving time during normal dev work. If you want this to be executed for every PR, we can explore adding -Pdist as well during execution, it will increase our cost for every build, may be have github actions for just Pdist or something of that sort |
|
Ya, I agree with your decision, @ayushtkn . |
|
BTW, do we have a regular SNAPSHOT publishing job? Apache ORC and Apache Spark has a daily SNAPSHOT publishing jobs and SBOM is tested there independently.
|
|
Also, cc @sunchao |
|
We have one here: https://ci-hadoop.apache.org/view/Hadoop/job/Hadoop-trunk-Commit/ I can add -Pdist here if you say, but we don't check the results of this build :) We have a post commit github action as well to deploy trunk website, can add -Pdist over there if you want https://github.com/apache/hadoop/blob/trunk/.github/workflows/website.yml#L47 |
|
Got it. Thank you for the pointers. |
cnauroth
left a comment
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.
+1 pending CI. @ayushtkn , good idea putting it behind the dist profile. @dongjoon-hyun , thank you for the patch.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
sunchao
left a comment
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 too
Description of PR
This is a second try of #5281 with new
cyclonedxplugin2.7.6and tested with Maven 3.9.1.This PR aims to publish SBOM artifacts.
Here is an article to give some context.
Software Bill of Materials (SBOM) are additional artifacts containing the aggregate of all direct and transitive dependencies of a project. The US Government (based on NIST recommendations) currently accepts only the three most popular SBOM standards as valid, namely: CycloneDX, Software Identification (SWID) tag, Software Package Data Exchange® (SPDX).
This PR uses CycloneDX maven plugin v2.7.6, a lightweight software bill of materials (SBOM) standard designed for use in application security contexts and supply chain component analysis.
cyclonedx-maven-plugin2.7.6 is verified in Apache ORC/Parquet/Avro/Arrow/Spark community as of today.cyclonedx-maven-pluginto 2.7.6 parquet-java#1057cyclonedx-maven-pluginto 2.7.6 spark#40726How was this patch tested?
Manually. For example,
hadoop-auth-3.4.0-SNAPSHOT.jarwill havehadoop-auth-3.4.0-SNAPSHOT-cyclonedx.xmlandhadoop-auth-3.4.0-SNAPSHOT-cyclonedx.jsonSBOM files additionally.For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?