mirror of
https://github.com/anchore/syft.git
synced 2026-08-19 08:38:25 +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:
parent
9dd9ce0bdd
commit
2293641e3b
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user