snyk-docker-plugin
Version:
Snyk CLI docker plugin
17 lines (16 loc) • 802 B
TypeScript
import { ChiselPackage, ImagePackagesAnalysis } from "../types";
/**
* Analyzes Ubuntu Chisel packages from a Docker image.
*
* Chisel is Canonical's tool for creating ultra-minimal Ubuntu container images
* by installing only specific "slices" of Debian packages rather than full packages.
* Packages are converted to the standard AnalyzedPackage format and scanned for
* vulnerabilities as Debian packages.
*
* @param targetImage - The Docker image identifier being analyzed
* @param packages - Array of Chisel packages extracted from the manifest
* @returns Promise resolving to image package analysis results
*
* @see https://documentation.ubuntu.com/chisel/en/latest/
*/
export declare function analyze(targetImage: string, packages: ChiselPackage[]): Promise<ImagePackagesAnalysis>;