mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Map Hashicorp Vault Homebrew package to correct vendor for CPE translation (#30363)
Fixes #30229. No changes file since this is a vulns feed fix not tied to a release. - [x] Added/updated automated tests - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
ab5567cad9
commit
aca3be97e9
2 changed files with 19 additions and 0 deletions
|
|
@ -1743,6 +1743,15 @@ func TestCPEFromSoftwareIntegration(t *testing.T) {
|
|||
BundleIdentifier: "",
|
||||
}, cpe: "cpe:2.3:a:github:cli:2.61.0:*:*:*:*:macos:*:*",
|
||||
},
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "vault",
|
||||
Source: "homebrew_packages",
|
||||
Version: "1.4.0",
|
||||
Vendor: "",
|
||||
BundleIdentifier: "",
|
||||
}, cpe: "cpe:2.3:a:hashicorp:vault:1.4.0:*:*:*:*:macos:*:*",
|
||||
},
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "pass",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,16 @@
|
|||
"target_sw": ["macos", "mac_os"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"software": {
|
||||
"name": ["vault"],
|
||||
"source": ["homebrew_packages"]
|
||||
},
|
||||
"filter": {
|
||||
"product": ["vault"],
|
||||
"vendor": ["hashicorp"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"software": {
|
||||
"name": ["pass"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue