Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SPDX2.2 JSON format should not use UUID random  #622

@spiffcs

Description

@spiffcs

What happened:
When generating an SPDX 2.2 format SBOM, the documentName function should not have a uuid as the base return case.

func documentName(srcMetadata source.Metadata) string {
switch srcMetadata.Scheme {
case source.ImageScheme:
return cleanSPDXName(srcMetadata.ImageMetadata.UserInput)
case source.DirectoryScheme:
return cleanSPDXName(srcMetadata.Path)
}
// TODO: is this alright?
return uuid.Must(uuid.NewRandom()).String()
}

What you expected to happen:
I expect the base case name to return a string that is in line with the specification found here

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions