Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

How can an organization enforce that every repo runs a specific workflow?

AdvancedConceptCustom Actions & Reusable Workflows
Answer

Repository rulesets with the "Require workflows to pass before merging" rule (successor of the earlier "required workflows" feature): pick a workflow file from a central repo and a ref, target repositories by name pattern or property, and the workflow runs on PRs of every targeted repo and must pass. Combined with org-level allowed-actions policies and required reviewers on .github/workflows/** via CODEOWNERS, this is how platform teams enforce security scanning org-wide.

All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows