CI examples execute unpinned packages through npx
Source references: 1The Skill recommends `npx bundlesize` and `npx lhci` without pinning package versions, verifying their source, or requiring lockfile-controlled project dependencies. If a package is absent locally, npx may download and immediately execute it from a package registry.
A substituted, compromised, or unexpectedly changed package could run with developer or CI permissions, potentially accessing source code, environment variables, and CI credentials or altering build results.
The source recommends running two unversioned npx packages in CI and does not require a locked local dependency near those commands. When a local package is absent, npx may download and execute registry code, creating supply-chain risk and possible exposure of the CI environment. This supports a plausible risk, not a claim that malicious code was executed.
**Enforce in CI:**```bash# Bundle size checknpx bundlesize --config bundlesize.config.json# Lighthouse CInpx lhci autorun```