Developer Tools
Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.
2876 articles
Does NuGet audit work on old packages.config projects?
Yes, since NuGet 6.10, but with limits: no audit mode setting and fewer MSBuild controls. A version table and what to do if you cannot migrate yet.
npm-shrinkwrap.json vs package-lock.json: which one do you publish?
package-lock.json stays in your repo, while npm-shrinkwrap.json can ship in the package. See when each fits and why libraries should avoid shrinkwrap.
npm publishing after Shai-Hulud: what GitHub planned, and a checklist
GitHub said it would limit npm publishing to local 2FA, short-lived granular tokens or trusted publishing. What that means and how to prepare packages.
How do you set the license field in package.json?
Set license to an SPDX identifier such as MIT, an expression like (ISC OR GPL-3.0), or SEE LICENSE IN a file. UNLICENSED means no rights are granted.
Check what goes in your npm package before you publish
Use the files field, npmignore rules and a dry run to see exactly which files ship in your npm tarball, so secrets and test data never reach the registry.
How do npm overrides, aliases and optional dependencies affect scans?
Overrides replace versions in the tree, aliases rename packages and optional packages may not install. Each can make a scan disagree with reality.
npm lockfile versions 1, 2 and 3: what must a scanner parse?
npm lockfiles come in three formats with different sections. Check that your scanner reads all of them, including old files that still sit in repositories.
npm integrity checksum error: what it means and what to do
An npm integrity error means the download does not match the hash in your lockfile. Here are the usual causes, how to investigate, and when to worry.
npm install or npm ci: which is safer for builds?
npm ci installs exactly what the lockfile says and fails on mismatch, so it is the safer choice for CI. See what it does and does not protect against.
Should CI run npm with ignore-scripts? What it stops and what breaks
ignore-scripts stops npm running package scripts such as install hooks in CI installs. It cuts one attack path but breaks packages that need a build step.
How do I find out why a package is in node_modules? Use npm explain
npm explain prints the chain of dependencies that pulled a package into your project. Use it to trace a vulnerable package to a parent you can change.
Should a Dockerfile use npm ci or npm install?
Use npm ci in Dockerfiles. It installs exactly what the lockfile says and fails on a mismatch, so builds are repeatable. Here are the steps and the traps.
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.