Repository navigation
Conversation
Since #609 the image installs Docker's six packages from Docker's apt repository, pinned in versions.yaml, and the SBOM still built their purls from packages.txt as pkg:deb/ubuntu: a scanner looked for them in Ubuntu's advisories and missed Docker's. Each .deb versions.yaml pins is now pkg:deb/<vendor> with its repository_url, the .deb's SHA-256 and its download URL, and the release refuses an image that did not record a pinned package at the pinned version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
A scanner reading the release's SBOM has to find each package's advisories where they are published. Since #609 the image installs Docker's six packages from Docker's apt repository, and the SBOM still named them
pkg:deb/ubuntu/..., so a scanner looked in Ubuntu's advisories and missed Docker's. Closes #621.What
release.BOMnames each.debthat versions.yaml pins by its repository. For examplepkg:deb/docker/docker-ce@5:29.10.0-1~ubuntu.26.04~resolute?arch=amd64&repository_url=https://download.docker.com/linux/ubuntu, with the.deb's SHA-256 and its download URL as a distribution reference..debpinned from a repository with no row is refused, so it cannot fall back to Ubuntu's name.Verified
TestAReleaseShipsEveryPartAndSaysWhatItIsreads themachine.cdx.jsonthatPackwrites and asserts docker-ce's purl, SHA-256 and URL, and that nopkg:deb/ubuntu/docker-ceis left.TestAReleaseMissingAnythingIsRefusedcovers each refusal: docker-ce missing, another version, a version that only starts with the pin's, and a repository with no vendor.packages.txt(local_output, with buildx corrected to today's pin), all six came outpkg:deb/docker.go tool task lint test mutatepass locally, with 33 mutants refused and 0 surviving.🤖 Generated with Claude Code