feat: add h1digest when scanning go.mod (#1405)

Fixes https://github.com/anchore/syft/issues/1277
This commit is contained in:
Keith Zantow
2022-12-20 02:18:35 +00:00
committed by GitHub
parent 82f32c7301
commit 7b08608adb
15 changed files with 247 additions and 94 deletions
@@ -365,7 +365,7 @@ func extractMetadata(p *spdx.Package, info pkgInfo) (pkg.MetadataType, interface
h1Digest = digest
break
}
return pkg.GolangBinMetadataType, pkg.GolangBinMetadata{
return pkg.GolangMetadataType, pkg.GolangMetadata{
H1Digest: h1Digest,
}
}