Safeguard
Topic

Developer Tools

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

2959 articles

Developer Tools

Pre-commit hook or pull request: where should dependency checks go?

Use a pre-commit hook for fast, local checks and the pull request for the dependency decision. Hooks can be skipped, so they cannot be the only control.

Oct 19, 20263 min read
Developer Tools

How does pre-commit autoupdate work, and what should rev be?

pre-commit expects rev to be an immutable tag or SHA. Learn what autoupdate does, what freeze does and how to keep hook versions current without drift.

Oct 19, 20263 min read
Developer Tools

Can PowerShell history leak secrets, and how do you filter it?

PSReadLine can skip commands before they reach history using AddToHistoryHandler. Here is a filter pattern for likely secrets, and where it falls short.

Oct 19, 20263 min read
Developer Tools

How do you post CI security alerts to Slack with an incoming webhook?

Post a CI security alert to Slack by sending JSON to an incoming webhook URL kept as a secret. Setup steps, the one per second limit and guardrails.

Oct 19, 20264 min read
Developer Tools

How do you poll OSV for new advisories without a full download?

OSV publishes modified_id.csv files listing records by last change. Use them to fetch just the new or updated advisories for your ecosystems.

Oct 19, 20264 min read
Developer Tools

How should you record policy exceptions in policy as code?

Keep exceptions in version control, targeted at one rule, with an owner and an end date. How Conftest exceptions work and a pattern that scales.

Oct 19, 20263 min read
Developer Tools

Why do open source policies fail, and which rules to automate first?

Workers will not always follow policy. The OSPO book says to automate use, management and tracking of components. Here is a sensible order to start.

Oct 19, 20264 min read
Developer Tools

How do you point npm, pip, Maven, Cargo and Go at one internal mirror?

A mirror only controls intake if every client uses it. This table shows the setting each major ecosystem uses and the traps that let traffic escape.

Oct 19, 20264 min read
Developer Tools

Why is poetry update a no-op for my vulnerable package?

Poetry update stays inside your pyproject constraints and never edits them. When the fix is outside the range, use poetry add to change the constraint.

Oct 19, 20264 min read
Developer Tools

How do I export poetry.lock to requirements.txt safely?

Use the poetry export plugin to write requirements.txt from poetry.lock, keep hashes, install with no deps, and know which groups the file includes.

Oct 19, 20264 min read
Developer Tools

How do I patch a dependency that has no fixed release yet?

When no fixed release exists, pnpm patch and yarn patch let you commit a small patch file against a dependency. Steps, limits and when to drop it.

Oct 19, 20264 min read
Developer Tools

pnpm nodeLinker isolated or hoisted: what changes for security?

pnpm's default isolated layout symlinks from a virtual store and limits phantom access. Hoisted gives a flat node_modules. What each means, when to switch.

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.