-
Couldn't load subscription status.
- Fork 727
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened:
When generating an SPDX 2.2 format SBOM, the documentName function should not have a uuid as the base return case.
syft/internal/formats/spdx22json/to_format_model.go
Lines 49 to 59 in bb0f35b
| 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 workingSomething isn't working