This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Grype.
Summary
Scans a source for vulnerabilities with Grype using the specified settings.
Syntax
public static void GrypeScan(this ICakeContext context, GrypeSource source, GrypeScanSettings settings)
Examples
var settings = new GrypeScanSettings
{
Outputs = { GrypeOutput.Table(), GrypeOutput.Json("./artifacts/grype.json") },
};
foreach (var source in new List<GrypeSource> { GrypeSource.Sbom("./artifacts/api.cdx.json"), GrypeSource.Registry("myorg/api:1.2.3") })
{
GrypeScan(source, settings);
}
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
| CakeAliasCategoryAttribute |
|
| CakeNamespaceImportAttribute |
|
| CakeNamespaceImportAttribute |
|
Parameters
Return Value