mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
feat: report unknowns in sbom (#2998)
Signed-off-by: Keith Zantow <kzantow@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Goodman
parent
4d7ed9f749
commit
ccbee94b87
@@ -26,6 +26,7 @@ type Artifacts struct {
|
||||
FileContents map[file.Coordinates]string
|
||||
FileLicenses map[file.Coordinates][]file.License
|
||||
Executables map[file.Coordinates]file.Executable
|
||||
Unknowns map[file.Coordinates][]string
|
||||
LinuxDistribution *linux.Release
|
||||
}
|
||||
|
||||
@@ -62,6 +63,9 @@ func (s SBOM) AllCoordinates() []file.Coordinates {
|
||||
for coordinates := range s.Artifacts.FileDigests {
|
||||
set.Add(coordinates)
|
||||
}
|
||||
for coordinates := range s.Artifacts.Unknowns {
|
||||
set.Add(coordinates)
|
||||
}
|
||||
for _, relationship := range s.Relationships {
|
||||
for _, coordinates := range extractCoordinates(relationship) {
|
||||
set.Add(coordinates)
|
||||
|
||||
Reference in New Issue
Block a user