Repository navigation
WP-7651: Ship the package SBOM inside the image - #102
Merged
Merged
Conversation
KharchenkoMaks
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: WP-7651
What
DockerfileandDockerfile.redhat, the same change in both: the installer stage copiesfiles/wsc_app*_sbom.jsontogether with the package. If the SBOM of the installed package is there (the package name with_sbom.jsonin place of.tar.gz, as on S3), the build checks that it carries the SHA-256 of the package and puts it at/opt/WebSpellChecker/sbom/wproofreader.cdx.json. A mismatch fails the build, so an image never gets the SBOM of another build.No SBOM file for <package>, the image has none. SBOMs named after other packages are ignored.Dockerfile.ubuntu-prebuiltis unchanged: it copies/opt/WebSpellCheckerfrom the Docker Hub image, so it keeps the SBOM.Why
Image scanners find the operating system packages and the LanguageTool jars on their own, but not our C/C++ libraries, TensorFlow or the Rust crates compiled into AppServer. Trivy and Docker Scout read a CycloneDX file found in an image, and only when its name ends in
.cdx.json; Snyk Container and Grype do not read it.Testing
wsc), wrong hash (the build fails with the message), SBOM of another package (ignored).Dockerfilewith the Linux x64 package 6.17.0.0 build 1086: with the SBOM next to the package it is in the image byte for byte and Docker Scout lists our Conan, cargo and Maven components; without it the image builds as before and has nosbomdirectory.Dockerfile.redhatwas not built.Release
files/, including customer builds, work as before.