mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
Merge pull request #257 from anchore/enhance-deb-support
Enhance dpkg support
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user