GitHub Actions Security Cheat Sheet: Permissions, Pinning, Secrets, and OIDC
1. Permissions — Principle of Least Privilege The single highest-impact change you can make to any GitHub Actions workflow is locking down permissions. By default, GITHUB_TOKEN has read and write access to most scopes. Override that immediately. Default Read-Only Permissions (Top-Level) Place this at the top of every workflow file to make read-only the default … Read more