Safeguard
Topic

Security Guides

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

5115 articles

Security Guides

Hardening GitLab merge request approval rules

Approval rules only help if authors cannot approve their own work or edit the rules. Settings to check in GitLab, and which ones need Premium or Ultimate.

Oct 18, 20263 min read
Security Guides

GitLab CI masked versus protected variables explained

Masked variables hide values in job logs. Protected variables limit which pipelines can read them. Know what each does and why neither is a full defense.

Oct 18, 20263 min read
Security Guides

GitLab fork merge request pipelines and secret safety

Fork pipelines run in the fork, but a member can run one in the parent project, which exposes parent variables. How to review first and block it if needed.

Oct 18, 20263 min read
Security Guides

GitLab CI_JOB_TOKEN allowlist: control cross-project access

CI_JOB_TOKEN works only while a job runs and reaches only its own project by default. How the allowlist works and which settings to leave on.

Oct 18, 20263 min read
Security Guides

Set GITHUB_TOKEN to read-only and grant permissions per job

Why the default GITHUB_TOKEN should be read-only, how to grant write access per job with the permissions key, and what to check in older workflows.

Oct 18, 20263 min read
Security Guides

GitHub push protection: setting a sane bypass policy

Push protection blocks secrets before they land, but anyone with write access can bypass it by default. How to set bypass reasons and delegated review.

Oct 18, 20263 min read
Security Guides

Turn on GitHub private vulnerability reporting: steps and form

Maintainers can enable private vulnerability reporting in a few clicks so researchers have a private channel. Steps and the custom form option.

Oct 18, 20263 min read
Security Guides

GitHub environments: required reviewers for production deploys

How environment protection rules gate production deploys in GitHub Actions: reviewers, self-review block, wait timers, branch limits and plan caveats.

Oct 18, 20263 min read
Security Guides

GitHub branch protection rules versus rulesets: which to use

Branch protection allows one rule per branch. Rulesets layer, toggle without deleting, and are visible to readers. A short guide to choosing between them.

Oct 18, 20263 min read
Security Guides

Stopping script injection in GitHub Actions workflows

How script injection works in GitHub Actions run steps and the fix GitHub recommends: pass untrusted values through an environment variable, not inline.

Oct 18, 20263 min read
Security Guides

Replace long-lived cloud secrets with GitHub Actions OIDC

How OIDC lets a GitHub Actions job get a short-lived cloud token instead of a stored key, what the subject claim does, and how to scope the trust.

Oct 18, 20263 min read
Security Guides

GitHub Actions to AWS with OIDC: no stored access keys

Use OpenID Connect so GitHub Actions gets short-lived AWS credentials. See the setup, the permissions needed and the trust policy condition to include.

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