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
Contains functionality for running Anchore Grype, a vulnerability scanner for SBOMs, container images and
file systems. Grype must be installed (for example
winget install Anchore.Grype) or
ToolPath must be set.
- Assembly
- Cake
.Grype .dll - Namespace
- Cake
.Grype - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["GrypeAliases"]
class Type type-node
Syntax
public static class GrypeAliases
Attributes
| Type | Description |
|---|---|
| Cake |
Methods
| Name | Value | Summary |
|---|---|---|
| GrypeDbCheck |
GrypeDbCheckResult |
Checks whether a newer Grype vulnerability database is available using the specified settings.
static
|
| GrypeDbCheck |
GrypeDbCheckResult |
Checks whether a newer Grype vulnerability database is available.
static
|
| GrypeDbDelete |
void |
Deletes the local Grype vulnerability database using the specified settings.
static
|
| GrypeDbDelete |
void |
Deletes the local Grype vulnerability database, for example to start a test from a clean cache.
static
|
| GrypeDbImport |
void |
Imports a Grype vulnerability database archive from disk using the specified settings.
static
|
| GrypeDbImport |
void |
Imports a Grype vulnerability database archive from disk, for offline or air-gapped builds.
static
|
| GrypeDbImport |
void |
Imports a Grype vulnerability database archive from a URL using the specified settings.
static
|
| GrypeDbImport |
void |
Imports a Grype vulnerability database archive from a URL. A
checksum=sha256:… query parameter is
verified by Grype.
static
|
| GrypeDbStatus |
GrypeDbStatus |
Gets the status of the local Grype vulnerability database using the specified settings.
static
|
| GrypeDbStatus |
GrypeDbStatus |
Gets the status of the local Grype vulnerability database. A missing database returns
Valid == false with an Error instead of throwing.
static
|
| GrypeDbUpdate |
void |
Downloads and installs the latest Grype vulnerability database using the specified settings.
static
|
| GrypeDbUpdate |
void |
Downloads and installs the latest Grype vulnerability database.
static
|
| GrypeReadJson |
GrypeReport |
Reads a Grype JSON report (written with
GrypeOutput.Json(file)) for inspection in C#.
static
|
| GrypeScan |
void |
Scans a source for vulnerabilities with Grype using the specified settings.
static
|
| GrypeScan |
void |
Scans a source for vulnerabilities with Grype. A string is passed to Grype unchanged, for example
"registry:alpine:3.20".
static
|
| GrypeScanDirectory |
void |
Scans a directory for vulnerabilities with Grype using the specified settings.
static
|
| GrypeScanDirectory |
void |
Scans a directory for vulnerabilities with Grype.
static
|
| GrypeScanFile |
void |
Scans a single file for vulnerabilities with Grype using the specified settings.
static
|
| GrypeScanFile |
void |
Scans a single file for vulnerabilities with Grype.
static
|
| GrypeScanImage |
void |
Scans a container image for vulnerabilities with Grype using the specified settings.
static
|
| GrypeScanImage |
void |
Scans a container image for vulnerabilities with Grype, using Grype's default image lookup.
static
|
| GrypeScanRegistry |
void |
Scans a container image pulled directly from a registry with Grype using the specified settings.
static
|
| GrypeScanRegistry |
void |
Scans a container image pulled directly from a registry (no container runtime required) with Grype.
static
|
| GrypeScanSbom |
void |
Scans an SBOM (Syft JSON, CycloneDX or SPDX) for vulnerabilities with Grype using the specified settings.
static
|
| GrypeScanSbom |
void |
Scans an SBOM (Syft JSON, CycloneDX or SPDX) for vulnerabilities with Grype.
static
|
| GrypeVersion |
GrypeVersion |
Gets Grype's version information using the specified settings.
static
|
| GrypeVersion |
GrypeVersion |
Gets Grype's version information.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
