← All finding types

lockfile_install_script_added

CWE-829

Lockfile Install Script Added — a PullGuard finding type. Findings of this type appear in the PR comment, Step Summary, SARIF (GitHub Security tab / IDE viewers), and the HTML report, each with severity, location, and the remediation guidance below.

How to fix

Read the install script before merging, or install without scripts low effort

# See what the package will run:
npm view <package>@<version> scripts
# Install without running scripts, then allow only the ones you need:
npm ci --ignore-scripts

Documentation →

What is compared

Every lockfile this change touches (package-lock.json, npm-shrinkwrap.json, yarn.lock v1 and berry, pnpm-lock.yaml) is read from git at the merge-base and at HEAD and compared with every lockfile in the same directory at the base. See the lockfile diff for the rules, the formats and what the comparison cannot see (install scripts are recorded by npm lockfiles v2+ and pnpm 8 and earlier only).

Triage

This finding judges the change itself against its base branch, so a committed baseline, delta mode and a .pullguardignore entry do not remove it (it is an always-surfaced security finding). If the change is intended, merge it after review; the next change is compared against the new base. A reviewed false-positive override (status: false_positive with a reason) keeps it visible and stops it blocking.