mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
fix: CPE generation for django (#2068)
Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
parent
dd09e0362e
commit
cedfa05e93
@ -183,6 +183,11 @@ var defaultCandidateAdditions = buildCandidateLookup(
|
||||
candidateKey{PkgName: "pip"},
|
||||
candidateAddition{AdditionalVendors: []string{"pypa"}},
|
||||
},
|
||||
{
|
||||
pkg.PythonPkg,
|
||||
candidateKey{PkgName: "Django"},
|
||||
candidateAddition{AdditionalVendors: []string{"djangoproject"}},
|
||||
},
|
||||
// Alpine packages
|
||||
{
|
||||
pkg.ApkPkg,
|
||||
|
||||
@ -896,6 +896,14 @@ func TestCandidateVendor(t *testing.T) {
|
||||
},
|
||||
expected: []string{"apache"},
|
||||
},
|
||||
{
|
||||
name: "Django",
|
||||
p: pkg.Package{
|
||||
Name: "Django",
|
||||
Type: pkg.PythonPkg,
|
||||
},
|
||||
expected: []string{"djangoproject" /* <-- known good names | default guess --> */, "Django"},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user