HTHou opened a new pull request, #19316: URL: https://github.com/apache/iotdb/pull/19316
## Description Generate an archive-specific CycloneDX JSON during Maven `package`, so it can be uploaded alongside its ZIP to Apache Trusted Releases. Each SBOM records the ZIP's SHA-256 digest. [ATR SBOM workflow](https://releases.apache.org/docs/sbom-workflows) - The source SBOM retains the Maven aggregate dependency graph. Java distributions use Syft to inventory the contents of each assembled ZIP. - The C++ SDK SBOM reads the Thrift and Boost versions from the corresponding CMake build and includes bundled or statically linked OpenSSL. The C++ package workflow includes the JSON in its downloadable artifact. - The frozen AINode distribution needs a separate build-time inventory for its Python modules. ### Example With Syft on `PATH`, run the release packaging command. ```bash mvn clean package -P apache-release -pl distribution -am -DskipTests ``` The all-in-one package and its SBOM are emitted together. ```text distribution/target/apache-iotdb-2.0.13-SNAPSHOT-all-bin.zip distribution/target/apache-iotdb-2.0.13-SNAPSHOT-all-bin.zip.cdx.json ``` ### Validation - Ran Maven packaging for the source ZIP, `all-bin`, `edge-bin`, and `library-udf-bin`, and ran `with-cpp` packaging on macOS. - Validated the generated JSON against the CycloneDX schemas and compared each recorded SHA-256 with its ZIP. Verified OpenSSL inventory using a macOS TLS build. - Started and stopped Edge from the generated distribution. - [x] Self-reviewed the changes. - [x] Documented release SBOM generation in `CONTRIBUTING.md`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
