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 →
- Put the scan workflow in a central repo.
- Create an org ruleset with "Require workflows to pass before merging", targeting repos by custom property (
tier: production). - 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.
More on Reuse at Scale: Reusable Workflows & Actions
Forty microservice repos each have a slightly different copy of the same build workflow. How do you standardize?IntermediateA team wants to share "checkout, setup Java, Maven cache, run Sonar" steps. Reusable workflow or composite action?BeginnerA shared reusable workflow change broke 120 pipelines on Monday. How do you prevent a repeat?IntermediateA called reusable workflow needs a Sonar token, an npm token and AWS access. How do you pass them?AdvancedYou want to ensure only the central deploy workflow can assume the production AWS role, not arbitrary workflows in app repos. How?AdvancedYou need an action that comments a Terraform plan summary on PRs and must work on Linux and Windows. Which kind?Beginner