Interview Prep/GitHub Actions/OIDC & Security Hardening

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on OIDC & Security Hardening