Safeguard
Topic

Developer Tools

In-depth guides and analysis on developer tools from the Safeguard engineering team.

2959 articles

Developer Tools

Pins or hashes: what keeps Python environments aligned?

Pinned versions keep Python installs consistent across dev, staging, and prod. Hashes add proof the files did not change. Here is when to use each.

Oct 19, 20263 min read
Developer Tools

How should pip authenticate to a private index: URL, netrc or keyring?

pip accepts credentials in the index URL, from a netrc file or from the keyring. A comparison of the three for laptops and CI in a small team.

Oct 19, 20263 min read
Developer Tools

What does ~= mean in Python requirements, and should you use it?

The ~= operator in Python requirements means compatible release. See what it allows, how it differs from == and ranges, and when each fits your project.

Oct 19, 20264 min read
Developer Tools

Does the pip-audit data source change your results?

pip-audit can query PyPI or OSV, and its flags change how requirements resolve. See how source and pinning settings affect a Python scan you compare.

Oct 19, 20263 min read
Developer Tools

Reproducible research or patched software: do you have to choose?

You can keep results reproducible and still update. Pin versions in a lock file, record them, and rebuild on a schedule instead of freezing forever.

Oct 19, 20264 min read
Developer Tools

How do you pin and update the Rust toolchain for a project?

Rust stable ships every six weeks. Use a rust-toolchain.toml file to pin a channel per project, and know how rustup picks a toolchain when several are set.

Oct 19, 20263 min read
Developer Tools

Does the npm engines field stop a client build on the wrong Node version?

The npm engines field only warns by default. How agencies can pin Node versions across local, CI, container and hosting so client builds agree.

Oct 19, 20264 min read
Developer Tools

Should consumers pin or float internal library versions?

Pin internal library versions with a lockfile and update on a schedule, or float within a compatible range. Trade offs and a default for consuming teams.

Oct 19, 20263 min read
Developer Tools

How do you pin GitHub Actions to a SHA without falling behind?

Pinning actions to a full commit SHA blocks tag tampering, but frozen pins miss fixes. See how Dependabot version updates keep SHA-pinned actions current.

Oct 19, 20263 min read
Developer Tools

How do you pin a known failure as a regression case in Hypothesis?

Add the failing input with the example decorator. Hypothesis runs it first on every run, so a fixed security bug cannot return unnoticed. Steps inside.

Oct 19, 20264 min read
Developer Tools

How do you pin a forked dependency to an exact commit in pip and npm?

Point pip and npm at your fork with a full commit hash, not a branch. A branch moves under you. A commit does not. Syntax, tradeoffs and what to record.

Oct 19, 20263 min read
Developer Tools

Per-language dependency gotchas: a one page cheat sheet

One surprising behavior per ecosystem, from official docs: npm, pip, Go, Cargo, NuGet, Gradle, Maven and Composer. Print it and keep it near CI.

Oct 19, 20264 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.