Developer Tools
Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.
2876 articles
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Can I follow a GitHub project's releases in an RSS reader?
Yes. Add /releases.atom to a repository URL to get an Atom feed of its releases, then route it to a reader or chat channel for dependency watching.
Why does a GitHub attestation workflow need id-token and attestations?
GitHub's artifact attestation workflow asks for id-token, contents and attestations permissions, plus packages for images. Here is what each one is for.
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.