mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
fix: add correct CPE vendor/product candidates for Git for Windows PE binary (#5156)
Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
This commit is contained in:
@@ -32,6 +32,11 @@ func candidateVendorsForPE(p pkg.Package) fieldCandidateSet {
|
|||||||
candidates.addValue("artifex")
|
candidates.addValue("artifex")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if product == "git" || fileDesc == "git setup" || company == "the git development community" {
|
||||||
|
candidates.addValue("git_for_windows_project")
|
||||||
|
candidates.addValue("gitforwindows")
|
||||||
|
}
|
||||||
|
|
||||||
return candidates
|
return candidates
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,5 +64,10 @@ func candidateProductsForPE(p pkg.Package) fieldCandidateSet {
|
|||||||
candidates.addValue("ghostscript")
|
candidates.addValue("ghostscript")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if product == "git" || fileDesc == "git setup" {
|
||||||
|
candidates.addValue("git_for_windows")
|
||||||
|
candidates.addValue("git")
|
||||||
|
}
|
||||||
|
|
||||||
return candidates
|
return candidates
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user