fix: handle individual cataloger panics (#1636)

This commit is contained in:
Keith Zantow
2023-03-01 10:03:34 -05:00
committed by GitHub
parent 8e1205f7ab
commit 24584a4d27
4 changed files with 85 additions and 20 deletions
+1 -4
View File
@@ -46,14 +46,11 @@ func generateCatalogPackagesTask(app *config.Application) (Task, error) {
task := func(results *sbom.Artifacts, src *source.Source) ([]artifact.Relationship, error) {
packageCatalog, relationships, theDistro, err := syft.CatalogPackages(src, app.ToCatalogerConfig())
if err != nil {
return nil, err
}
results.PackageCatalog = packageCatalog
results.LinuxDistribution = theDistro
return relationships, nil
return relationships, err
}
return task, nil