Interview Prep/GitHub Actions/OIDC & Security Hardening

How do you protect the workflow files themselves from malicious changes?

IntermediateConceptOIDC & Security Hardening
Answer

CODEOWNERS entry /.github/ @devopsshack/platform with "Require review from Code Owners" in branch protection or a ruleset; required approvals on main; restrict who can push to release branches and create tags (tag rulesets); environments with branch policies so a modified workflow on a feature branch cannot deploy to prod; OIDC trust tied to main or environments; and audit-log alerts on changes to Actions settings, secrets and runner groups.

All GitHub Actions questions Roadmap: GitHub Actions

More on OIDC & Security Hardening