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

You maintain a public action used by thousands of repos. How do you release safely?

AdvancedScenarioReuse at Scale: Reusable Workflows & Actions
Answer

Situation read → You are now part of others' supply chain.

What I'd do →

  1. Protected main, required reviews, 2FA, tag rulesets restricting who can create v* tags.
  2. Release via workflow from main only, with immutable releases enabled.
  3. Semver tags plus moving major tag; document SHA pinning in the README.
  4. Minimal dependencies, Dependabot, CodeQL, and provenance attestation for dist/.
  5. A security policy and private vulnerability reporting.

Why → The tj-actions compromise showed how one maintainer token can hit thousands of pipelines.

Interview tip → Reference a real incident; it signals current awareness.

All GitHub Actions questions Roadmap: GitHub Actions

More on Reuse at Scale: Reusable Workflows & Actions