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

Teams ask for a "golden pipeline" but still need custom test steps. How do you design for extension?

AdvancedScenarioReuse at Scale: Reusable Workflows & Actions
Answer

Situation read → Balance standardization and flexibility.

What I'd do →

  1. Split the golden pipeline into stages as separate reusable workflows (build, scan, deploy) rather than one monolith.
  2. Teams own their test job in their repo and chain: test (theirs) then uses: platform/build-image.yml then uses: platform/deploy-eks.yml.
  3. Offer inputs for common knobs (Dockerfile path, build args, test command), not arbitrary script injection points.
  4. Enforce non-negotiables (scan, provenance) inside the platform workflows and via rulesets.

Why → Composable blocks beat one template with 40 inputs.

Interview tip → "Paved road, not a cage."

All GitHub Actions questions Roadmap: GitHub Actions

More on Reuse at Scale: Reusable Workflows & Actions