Safeguard
Topic

Software Supply Chain

In-depth guides and analysis on software supply chain from the Safeguard engineering team.

283 articles

Software Supply Chain

How do you maintain npm dependencies without breaking your build?

Commit the lock file, install with npm ci, audit on a schedule, update in small batches and verify provenance. A practical routine for npm projects.

Oct 18, 20264 min read
Software Supply Chain

How do you build a VS Code extension, and what should you secure?

Scaffold with Yeoman, run it in the Extension Development Host, add a command in package.json, then lock down dependencies, permissions and publishing.

Oct 18, 20264 min read
Software Supply Chain

How do malicious dependency attacks work in the software supply chain?

Attackers publish or hijack packages so a normal install runs their code. Learn the four common routes and the checks that catch them before a build.

Oct 18, 20265 min read
Software Supply Chain

How does publishing a Go module work, and where does provenance fit?

Go modules are published by tagging a version, and the checksum database guards consumers. See what it proves, what it misses, and where provenance fits.

Oct 18, 20264 min read
Software Supply Chain

How do you vet a Go module before adding it to your project?

Check the module's vulnerability record with govulncheck, read its retractions and deprecations, review who it pulls in, and pin the result in go.sum.

Oct 18, 20264 min read
Software Supply Chain

How do you sign artifacts and record provenance in GitLab CI?

Use an id_tokens entry with aud sigstore for Cosign keyless signing, enable runner metadata for SLSA provenance, and verify with a pinned identity.

Oct 18, 20264 min read
Software Supply Chain

How do you protect GitLab CI from poisoned merge requests?

A merge request can edit .gitlab-ci.yml and run code near your secrets. Protect variables, read CI changes before running, and limit fork pipelines.

Oct 18, 20265 min read
Software Supply Chain

How do you pin includes, components and images in GitLab CI?

Pin GitLab CI includes and components to a commit SHA or exact release, pin images by digest, and treat moving references like latest as unreviewed code.

Oct 18, 20264 min read
Software Supply Chain

How do you limit GitHub Actions token permissions to least privilege?

Set the default GITHUB_TOKEN to read only, grant write per job, pin actions to commit SHAs and use OIDC for cloud access. Here is the order to do it in.

Oct 18, 20265 min read
Software Supply Chain

How do you protect GitHub Actions builds from poisoned pull requests?

Keep untrusted pull request code away from secrets. Avoid pull_request_target checkouts, pass event data via env vars, use read-only tokens, pin actions.

Oct 18, 20265 min read
Software Supply Chain

How do you sign and prove provenance for GitHub Actions builds?

Add GitHub's attest action to a workflow, verify with gh attestation verify before deploy, and know what a signed build record does and does not prove.

Oct 18, 20264 min read
Software Supply Chain

How do you generate an SBOM for a PHP Composer project?

Install the CycloneDX Composer plugin, run make-sbom against an installed project, validate the output and run composer audit. Commands, flags and pitfalls.

Oct 18, 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.