From f8d231d024e2b6516187dc3b575368f7cc5ac81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Tue, 10 Sep 2024 15:23:47 +0200 Subject: [PATCH] CloudAPI: request SBOM documents in depsolve jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Hozza --- internal/cloudapi/v2/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cloudapi/v2/server.go b/internal/cloudapi/v2/server.go index 42feec0bf..3e11aabad 100644 --- a/internal/cloudapi/v2/server.go +++ b/internal/cloudapi/v2/server.go @@ -26,6 +26,7 @@ import ( "github.com/osbuild/images/pkg/manifest" "github.com/osbuild/images/pkg/ostree" "github.com/osbuild/images/pkg/reporegistry" + "github.com/osbuild/images/pkg/sbom" "github.com/osbuild/osbuild-composer/internal/auth" "github.com/osbuild/osbuild-composer/internal/blueprint" "github.com/osbuild/osbuild-composer/internal/common" @@ -170,6 +171,7 @@ func (s *Server) enqueueCompose(irs []imageRequest, channel string) (uuid.UUID, ModulePlatformID: distribution.ModulePlatformID(), Arch: arch.Name(), Releasever: distribution.Releasever(), + SbomType: sbom.StandardTypeSpdx, }, channel) if err != nil { return id, HTTPErrorWithInternal(ErrorEnqueueingJob, err) @@ -297,6 +299,7 @@ func (s *Server) enqueueKojiCompose(taskID uint64, server, name, version, releas ModulePlatformID: distribution.ModulePlatformID(), Arch: arch.Name(), Releasever: distribution.Releasever(), + SbomType: sbom.StandardTypeSpdx, }, channel) if err != nil { return id, HTTPErrorWithInternal(ErrorEnqueueingJob, err)