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
ReadorNone, 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).
More on Identity, Least Privilege & OIDC for CI
How do you design AWS OIDC trust for GitHub Actions so only production deploys can assume the prod role?IntermediateWhat are the common mistakes in OIDC trust policies for CI?AdvancedHow do you configure OIDC for GitLab CI to AWS?IntermediateHow do you get from "everyone has AdministratorAccess" to least privilege without breaking things?AdvancedWhat SCP guardrails do you apply across an AWS organisation?IntermediateHow do you implement just-in-time (JIT) privileged access for production?Intermediate