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.
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