Skip to content

Attach SPDX SBOM attestations to published container images #4119

Backlog

Description

@sweepies

Is your feature request related to a problem? Please describe.

The published OpenCloud container images (opencloudeu/opencloud, opencloudeu/opencloud-rolling) do not currently carry OCI SBOM attestations.

My dependency update tool, Count Patchula, surfaces CVEs for Docker image updates by comparing image SBOMs against OSV.dev without pulling image layers. Without an SBOM attached to the image index, neither Count Patchula nor other registry-side SBOM/vulnerability scanners can tell which OS or package advisories a new OpenCloud image digest resolves.

Describe the solution you'd like

Attach BuildKit SPDX SBOM attestations (--sbom=true / in-toto.io/predicate-type: https://spdx.dev/Document) to the multi-arch container images built in .woodpecker.star (container-build-* → build-and-push).

Describe alternatives you've considered

  • Generating an SPDX SBOM with syft and attaching it to the pushed manifest digest (e.g. as an OCI referrer or cosign attestation) alongside the existing signing step.
  • Note on woodpeckerci/plugin-docker-buildx: it currently exposes provenance (--provenance) in plugin/docker.go, but does not yet expose an sbom (--sbom) setting — so using BuildKit's native --sbom=true via the plugin would first need an sbom flag added in woodpecker-ci/plugin-docker-buildx (or invoking docker buildx build --sbom=true directly).

Additional context

OpenCloud's multi-arch images already build with BuildKit (woodpeckerci/plugin-docker-buildx) on an Alpine base (alpine:3.24), so BuildKit's built-in SBOM generator (or Syft) will automatically produce a complete SPDX package list for the image.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions