Repository navigation
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+)