Worker/koji-finalize: import uploaded SBOM documents
If the Koji target result contains information about any uploaded SBOM documents, import them to Koji as part of the finalize task. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
c109265abb
commit
1c7462b275
2 changed files with 29 additions and 0 deletions
|
|
@ -159,6 +159,12 @@ type ManifestExtraInfo struct {
|
|||
|
||||
func (ManifestExtraInfo) isImageOutputTypeMD() {}
|
||||
|
||||
type SbomDocExtraInfo struct {
|
||||
Arch string `json:"arch"`
|
||||
}
|
||||
|
||||
func (SbomDocExtraInfo) isImageOutputTypeMD() {}
|
||||
|
||||
// BuildOutputExtra holds extra metadata associated with the build output.
|
||||
type BuildOutputExtra struct {
|
||||
// ImageOutput holds extra metadata about a single "image" output.
|
||||
|
|
@ -176,6 +182,7 @@ const (
|
|||
BuildOutputTypeImage BuildOutputType = "image"
|
||||
BuildOutputTypeLog BuildOutputType = "log"
|
||||
BuildOutputTypeManifest BuildOutputType = "osbuild-manifest"
|
||||
BuildOutputTypeSbomDoc BuildOutputType = "sbom-doc"
|
||||
)
|
||||
|
||||
// ChecksumType represents the type of a checksum used for a BuildOutput.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue