How do you keep GitHub Actions workflow files themselves safe from unauthorised changes?
IntermediateProductionGitHub Actions and GitLab CI in Production
Answer
CODEOWNERS entry /.github/workflows/ @acme/platform-security with required code owner review; restrict permissions: to least privilege per workflow; limit which actions may run in organisation settings (allow GitHub-owned and an approved list, with SHA pinning required); require approval for workflows from outside collaborators; and scan workflows in CI with zizmor and actionlint.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you reduce GitHub Actions minutes cost on private repos?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you handle required checks when workflows use path filters or matrices?Advanced