Repository navigation
[6.x] Stop attaching intermediate stage SBOMs to the published images - #462
Merged
Merged
Conversation
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.
Goal
Docker Scout reports CVE-2026-4738 (alpine/zlib 1.3.2-r1) on
shinsenter/s6-overlay:dev-v3.2.3.2. The image is builtFROM scratchand contains only/s6, so the finding is a false positive.Cause
ARG BUILDKIT_SBOM_SCAN_STAGE=truemakes BuildKit attach the SBOM of every intermediate stage (AdditionalSPDXs).s6-overlaythat adds thebase-osstage, which lists zlib 1.3.2-r1 from thealpine:latestlayer. The package is not in the final image, andbase-osalready upgrades it to 1.4-r0.Scope
ARG BUILDKIT_SBOM_SCAN_STAGE=truefrom the 31 dockerfiles insrc/phpandsrc/webapps.BUILDKIT_SBOM_SCAN_CONTEXTandsbom: truein the workflow, so the SBOM of the final image stays.Risks
buildfilehash of most images changes, so the next run rebuilds nearly all images once.dockerfile-xhandlesARGdifferently from what I expect,AdditionalSPDXsmay remain. Check the SBOM ofs6-overlayafter the next build.Tests
tests/run.shpasses (lint 101, versions 86, backports 66, config 6, scaling 63, ssh 6, defaults 6).