Interview Prep/GitHub Actions/Reuse at Scale: Reusable Workflows & Actions

You want all repos to get a new security scan without editing 300 repos. How?

AdvancedScenarioReuse at Scale: Reusable Workflows & Actions
Answer

Situation read → Org-wide enforcement.

What I'd do →

  1. Put the scan workflow in a central repo.
  2. Create an org ruleset with "Require workflows to pass before merging", targeting repos by custom property (tier: production).
  3. Roll out in evaluate mode first, then active.

Why → Rulesets inject the workflow into PRs of targeted repos with no per-repo YAML.

Interview tip → Mention evaluate mode; big-bang enforcement creates angry teams.

All GitHub Actions questions Roadmap: GitHub Actions

More on Reuse at Scale: Reusable Workflows & Actions