CveResolverInterface
API reference › Foxy › Audit › CveResolverInterface
Implemented by 1 type
Resolves the CVE identifiers of GitHub security advisories.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
resolveMany() abstract | Resolves the CVE identifiers of several advisories at once. | CveResolverInterface |
Method details
Section titled “Method details”resolveMany()
Section titled “resolveMany() ”abstract public function resolveMany(list<string> $ghsaIds): array<string, Foxy\Audit\CveResolution|Throwable>Resolves the CVE identifiers of several advisories at once.
Parameters
| Parameter | Type | Description |
|---|---|---|
$ghsaIds | list<string> | GHSA identifiers to resolve. |
Returns
array<string, CveResolution|Throwable>: One result for every identifier, keyed by canonical GHSA identifier; a Throwable marks a lookup that failed.
Throws
Foxy\Exception\RuntimeException: if an identifier is not a GHSA identifier; nothing is requested in that case.