Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
Can you revoke a departing employee's GitHub tokens? What owners can do
Org owners can view and revoke fine-grained GitHub tokens but not classic ones, and SSH keys made by a token keep working. Here is the leaver sequence.
How should you set GITHUB_TOKEN permissions for fork pull requests?
Set the default GITHUB_TOKEN to read-only for repository contents, raise it per job, and know that fork pull requests get a read-only token regardless.
What does the GitHub OIDC sub claim look like for each trigger?
The sub claim in GitHub's OIDC token changes with environment, branch, tag, and pull request jobs. See each format and how to write a tight trust rule.
What do GitHub OAuth app access restrictions block in an org?
With restrictions on, members cannot authorize OAuth apps for org data and unapproved apps lose private access. Defaults, approval flow, what to check.
How do GitHub environment approvals gate a Terraform apply?
GitHub environments can require reviewers, block self-review and limit branches before a deploy job runs. Setup steps for gating infrastructure applies.
How do GitHub environments keep prod secrets from other branches?
Environment secrets reach only jobs that use the environment, after its rules pass. Add deployment branch rules and reviewers to guard production secrets.
How do you set up GitHub Actions OIDC to Azure without a secret?
Set up a federated identity credential on a Microsoft Entra app so GitHub Actions can deploy to Azure with no stored secret. Steps, subjects, limits.
Which GitHub Actions caches can a branch or fork pull request restore?
A run can restore caches from its own branch and the default branch, but not sibling branches. The scope rules, what they imply, and how to use them.
How should a package maintainer secure their GitHub account?
Your GitHub account controls what CI publishes. Turn on 2FA, add a security key, keep a fallback, and store recovery codes; support cannot restore access.
How do you get a first exposure baseline in one hour?
A one hour plan to pick three services, collect timestamps for recent fixes and compute your first stage times, so you know where your exposure time goes.
What extra files does a generated SDK ship, and are they safe?
Generators can emit CI configs, a git push script and metadata folders along with code. What to keep, what to delete and what to review before publishing.
Generated API clients: five security myths and the facts
Is generated code safe by default, never edited, immune to scanners? Five common beliefs about generated API clients, checked against the docs.
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.