GrypeAliases.

GrypeScan(ICakeContext, GrypeSource) Method

Summary

Scans a source for vulnerabilities with Grype. A string is passed to Grype unchanged, for example "registry:alpine:3.20".
Assembly
Cake.Grype.dll
Namespace
Cake.Grype
Containing Type
GrypeAliases

Syntax

public static void GrypeScan(this ICakeContext context, GrypeSource source)

Examples

GrypeScan(GrypeSource.Sbom("./artifacts/bom.cdx.json"));
GrypeScan("registry:alpine:3.20");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
source GrypeSource The source to scan.

Return Value

Type Description
void