mirror of
https://github.com/anchore/syft.git
synced 2026-10-11 21:57:22 +02: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")
|
||||
}
|
||||
|
||||
if product == "git" || fileDesc == "git setup" || company == "the git development community" {
|
||||
candidates.addValue("git_for_windows_project")
|
||||
candidates.addValue("gitforwindows")
|
||||
}
|
||||
|
||||
return candidates
|
||||
}
|
||||
|
||||
@@ -59,5 +64,10 @@ func candidateProductsForPE(p pkg.Package) fieldCandidateSet {
|
||||
candidates.addValue("ghostscript")
|
||||
}
|
||||
|
||||
if product == "git" || fileDesc == "git setup" {
|
||||
candidates.addValue("git_for_windows")
|
||||
candidates.addValue("git")
|
||||
}
|
||||
|
||||
return candidates
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user