What is a "required workflow" or ruleset-based workflow enforcement in GitHub?
AdvancedConceptGitHub Actions
Answer
Organisations can enforce that a specific workflow (typically security scans or compliance checks) must pass on every repository, without each team copying it, using repository rulesets with the "Require workflows to pass before merging" rule. The workflow lives in a central repo and runs against the target repo's PRs; teams cannot delete or edit it. It complements required status checks and CODEOWNERS for the .github/workflows directory.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate