Safeguard
Tag

Developer Tools

Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.

2876 articles

Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read
Developer Tools

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.

Oct 18, 20263 min read

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.