Interview Prep/DevSecOps/Identity, Least Privilege & OIDC for CI

How do you secure identity and access in a GitHub organisation?

IntermediateProductionIdentity, Least Privilege & OIDC for CI
Answer
  • Enforce SAML SSO (or Enterprise Managed Users) and require 2FA; prefer passkeys or security keys.
  • Teams synced from IdP groups; base permission Read or None, repo access through teams only.
  • Prefer GitHub Apps for automation (short-lived installation tokens, scoped to repos) over personal access tokens.
  • Where PATs remain, require fine-grained PATs with an expiry and org approval; block classic PATs via org policy.
  • Limit org owners to a handful of people; review the audit log stream in the SIEM.
  • Restrict which GitHub Actions and reusable workflows may run (allowlist).
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Identity, Least Privilege & OIDC for CI