fix(docker): remove bundled npm from runner to clear Trivy CVEs #4
Reference in New Issue
Block a user
Delete Branch "fix/trivy-remove-bundled-npm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trivy on pipeline #10 flagged HIGH CVEs in bundled by the base image (minimatch 10.2.2, picomatch 4.0.3, tar 7.5.9). Our runtime is from the standalone Next output; npm/corepack are unused at runtime.
Changes
Runner stage deletes , [1m━━━ Corepack - 0.34.6 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[38;5;256m━[38;5;255m━[38;5;254m━[38;5;253m━[38;5;252m━[38;5;251m━[38;5;250m━[38;5;249m━[38;5;248m━[38;5;247m━[38;5;246m━[38;5;245m━[38;5;244m━[38;5;243m━[38;5;242m━[38;5;241m━[38;5;240m━[38;5;239m━[38;5;238m━[38;5;237m━[38;5;236m━[38;5;235m━[38;5;234m━[38;5;233m━[0m
[1m$ [22mcorepack
[1m━━━ General commands ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━[38;5;256m━[38;5;255m━[38;5;254m━[38;5;253m━[38;5;252m━[38;5;251m━[38;5;250m━[38;5;249m━[38;5;248m━[38;5;247m━[38;5;246m━[38;5;245m━[38;5;244m━[38;5;243m━[38;5;242m━[38;5;241m━[38;5;240m━[38;5;239m━[38;5;238m━[38;5;237m━[38;5;236m━[38;5;235m━[38;5;234m━[38;5;233m━[0m
[1mcorepack cache clean[22m
Cleans Corepack cache
[1mcorepack disable [--install-directory #0] ...[22m
Remove the Corepack shims from the install directory
[1mcorepack enable [--install-directory #0] ...[22m
Add the Corepack shims to the install directory
[1mcorepack install[22m
Install the package manager configured in the local project
[1mcorepack install <-g,--global> [--cache-only] ...[22m
Install package managers on the system
[1mcorepack pack [--json] [-o,--output #0] ...[22m
Store package managers in a tarball
[1mcorepack up[22m
Update the package manager used in the current project
[1mcorepack use [22m
Define the package manager to use for the current project
You can also print more details about any of these commands by calling them with
the [36m
-h,--help[39m flag right after the command name., and the matching shims.Test plan