Safeguard
Topic

Developer Tools

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

2959 articles

Developer Tools

Is go install tool@latest safe for developer tools?

What go install with @latest does, why it ignores your go.mod, and how to pin Go developer tools so every laptop and CI job builds the same version.

Oct 19, 20264 min read
Developer Tools

How does Go choose a toolchain, and what is GOTOOLCHAIN?

Since Go 1.21 the go line in go.mod is a minimum and the go command can switch toolchains. Learn GOTOOLCHAIN values and how to keep patch levels current.

Oct 19, 20264 min read
Developer Tools

Does go build run go generate directives from dependencies?

go generate never runs automatically during go build or go test. Here is what a go:generate line can do, and how to review one in your own repository.

Oct 19, 20263 min read
Developer Tools

How should a Go Dockerfile handle modules and go mod verify?

Copy go.mod and go.sum first, run go mod download and go mod verify in their own layer, then build. Faster rebuilds and a tamper check on cached modules.

Oct 19, 20264 min read
Developer Tools

What do go build trimpath and buildvcs change in your binary?

The trimpath flag removes file system paths from a Go binary, and buildvcs controls version control stamping. Learn what each records and when to use them.

Oct 19, 20264 min read
Developer Tools

What spam rate does Gmail expect from senders, 0.10% or 0.30%?

Google says keep the spam rate under 0.10% and never reach 0.30%. See what the number measures, where to read it and what to do when it climbs.

Oct 19, 20263 min read
Developer Tools

Should .env be in a global gitignore, or the project's .gitignore?

Put .env in the project's .gitignore so everyone is covered, and add a global ignore as a personal backstop. Git's docs say where each rule belongs.

Oct 19, 20263 min read
Developer Tools

Why should a fix bot have its own identity and signed commits?

A dedicated bot identity makes every automated change attributable and revocable. Here is how identity, scopes and signed commits fit together.

Oct 19, 20264 min read
Developer Tools

What can GitLab push rules block that protected branches cannot?

GitLab push rules reject unsigned commits, secret file names, bad branch names and oversized files at push time. Tiers, scopes and how to roll them out.

Oct 19, 20263 min read
Developer Tools

How do merge request pipelines change where security scans run?

A scan job only runs on merge requests if its rules match the merge request event. Learn the setup, the include pitfall, and merged results pipelines.

Oct 19, 20263 min read
Developer Tools

How should GITHUB_TOKEN permissions be set in a monorepo workflow?

In a monorepo, set GITHUB_TOKEN permissions per job and start from none. One broad workflow-level setting gives every service's job the same write access.

Oct 19, 20263 min read
Developer Tools

What GITHUB_TOKEN permissions does a package release workflow need?

Start with read-only contents and add one scope per job. How the permissions key works, why unlisted scopes become none, and a build and publish example.

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.