Repository navigation
Releases
scriptvet 1.0.1
scriptvet finds every dependency in your lockfile that runs an install script (preinstall, install, postinstall), reads the code it runs, tells you what it does and whether to allow it, and writes the allowlist that npm 12, pnpm 11, Yarn and Bun need.
New in 1.0.1: GitHub Action
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: feresbr1/scriptvet@v1The job fails when a pull request adds a dependency with an install script that is not in your allowlist. The job summary explains what each script does (native build, binary download, funding banner, git hooks...) with an allow/deny recommendation. Fix it with npx github:feresbr1/scriptvet --write.
Inputs: path, working-directory, manager (npm, pnpm, yarn, bun), fail-on-uncovered (default true).
Also available
- In the browser: https://feresbr1.github.io/scriptvet/
- CLI:
npx github:feresbr1/scriptvet, orscriptvet.mjsbelow (single file, Node.js 18.17+)
scriptvet 1.0.0
First release of scriptvet: npm 12, pnpm 11 and Bun no longer run dependency install scripts by default. scriptvet shows what each one does and writes the allowlist.
npx github:feresbr1/scriptvet --writeOr download scriptvet.mjs below and run node scriptvet.mjs in your project (Node.js 18.17+, no dependencies).
- Finds preinstall / install / postinstall scripts (and implicit node-gyp builds) in npm, pnpm, Yarn and Bun lockfiles
- Reads the code each script runs for the exact version and classifies it: native build, binary download, binary check, message, git hooks, code generation, or review
- Writes allowScripts (npm), allowBuilds (pnpm), dependenciesMeta (Yarn) or trustedDependencies (Bun), pinned to the reviewed versions
--checkfor CI- Generated config verified with npm 12.2.0 --strict-allow-scripts and pnpm 11.28.6