Skip to content

ci(docker): attach SBOM attestations to published images - #8157

Open
sweepies wants to merge 1 commit into
coder:mainfrom
sweepies:ci/docker-sbom
Open

sweepies wants to merge 1 commit into
coder:mainfrom
sweepies:ci/docker-sbom

Conversation

@sweepies

Copy link
Copy Markdown

Adds --sbom=true to docker buildx bake --push in ci/steps/docker-buildx-push.sh so BuildKit attaches SPDX SBOM attestations to all published code-server image variants (Debian, Ubuntu, Fedora, openSUSE) while keeping local non-push bake runs unaffected.

Motivation: My dependency update tool, Count Patchula, surfaces CVEs for Docker image updates by comparing image SBOMs against OSV.dev without pulling image layers. Attaching BuildKit SPDX SBOMs lets Count Patchula and other downstream scanners check OS package advisories directly from the registry.

Verification

  • Verified ci/steps/docker-buildx-push.sh with shellcheck.
  • --sbom=true is passed to docker buildx bake (supported since Buildx v0.10) alongside --push.

@sweepies
sweepies requested a review from a team as a code owner November 25, 2026 04:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant