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.
More on OIDC & Security Hardening
How does GitHub OIDC work, end to end?IntermediateWhat are the `sub` claim formats, and which do you put in an AWS trust policy?AdvancedConfigure OIDC to AWS: provider, role and workflow.AdvancedConfigure OIDC to Azure.AdvancedConfigure OIDC to GCP.AdvancedWhy pin actions to a full commit SHA, and how do you keep pins updated?Intermediate