Interview Prep/GitHub Actions/OIDC & Security Hardening

How do you restrict which actions can run in an organization?

AdvancedConceptOIDC & Security Hardening
Answer

Org Settings, Actions, General, Policies: allow all, only org-owned, or org plus selected (GitHub-authored, verified Marketplace creators, and an explicit list like docker/*, aws-actions/configure-aws-credentials@*). The policy can also require full SHA pinning and block specific actions or versions. Enterprises set it centrally. A blocked action fails at "Set up job" with a message that the action is not allowed. This turns the supply chain into an explicit, reviewed list.

All GitHub Actions questions Roadmap: GitHub Actions

More on OIDC & Security Hardening