Merge pull request #257 from anchore/enhance-deb-support

Enhance dpkg support
This commit is contained in:
Alex Goodman
2020-11-11 13:12:29 -05:00
committed by GitHub
23 changed files with 1136 additions and 95 deletions
+2
View File
@@ -11,6 +11,7 @@ type Artifact struct {
Type string `json:"type"`
FoundBy []string `json:"foundBy"`
Locations Locations `json:"locations,omitempty"`
Licenses []string `json:"licenses"`
Metadata interface{} `json:"metadata,omitempty"`
}
@@ -26,6 +27,7 @@ func NewArtifact(p *pkg.Package, s scope.Scope) (Artifact, error) {
Type: string(p.Type),
FoundBy: []string{p.FoundBy},
Locations: locations,
Licenses: p.Licenses,
Metadata: p.Metadata,
}, nil
}
@@ -9,7 +9,8 @@
],
"locations": [
"/some/path/pkg1"
]
],
"licenses": null
},
{
"name": "package-2",
@@ -20,7 +21,8 @@
],
"locations": [
"/some/path/pkg1"
]
],
"licenses": null
}
],
"source": {
@@ -12,7 +12,8 @@
"path": "/somefile-1.txt",
"layerIndex": 0
}
]
],
"licenses": null
},
{
"name": "package-2",
@@ -26,7 +27,8 @@
"path": "/somefile-2.txt",
"layerIndex": 1
}
]
],
"licenses": null
}
],
"source": {