What is the threat model of a GitHub Actions workflow?
AdvancedConceptOIDC & Security Hardening
Answer
Assets: secrets, GITHUB_TOKEN (write to code, releases, packages), OIDC trust to clouds, runner hosts and their networks, caches and artifacts consumed later. Entry points: untrusted input (fork PRs, comments, branch names), third-party actions and their dependencies, compromised maintainer accounts, self-hosted runner persistence, cache poisoning, and workflow edits by anyone with write access. Controls: least-privilege tokens, environment-gated secrets, OIDC with narrow sub, SHA pinning plus allow-lists, no untrusted code in privileged triggers, ephemeral runners, CODEOWNERS on .github/, and audit logs streamed to a SIEM.
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