UNPKG

snyk-docker-plugin

Version:
16 lines (15 loc) 990 B
import { OwnershipCandidate } from "../package-managers/apk-ownership"; import { AppDepsScanResultWithoutTarget } from "./types"; /** Collect filesystem paths from an app scan result used to resolve APK ownership. */ export declare function extractEvidencePaths(scanResult: AppDepsScanResultWithoutTarget): string[]; /** * Build the ownership units for an app scan result, each resolved independently * by resolveApkOwnership: * - npm global modules: one unit per package, keyed by its own install dir. The * shared node_modules root is declared by several apk packages, so only each * package's own dir resolves to a single owner. * - Java jars, Go binaries, everything else: a single whole-result unit over the * result's evidence paths — owned only when one apk package owns them all * (fail closed), the same whole-result behavior #872 introduced. */ export declare function buildOwnershipCandidates(scanResult: AppDepsScanResultWithoutTarget): OwnershipCandidate[];