What makes a good internal action or reusable workflow interface?
AdvancedConceptCustom Actions & Reusable Workflows
Answer
Small, typed, documented inputs with safe defaults; explicit secrets (no inherit across teams); outputs for everything consumers need (image digest, URL); semver releases with a changelog and a moving major tag; no hidden side effects (it should not push tags unless asked); least-privilege permissions declared inside; pinned dependencies; and a test workflow that exercises it. We also add a README with a copy-paste example and keep breaking changes to major versions, because a broken shared workflow breaks hundreds of pipelines at once.
More on Custom Actions & Reusable Workflows
What are the three kinds of custom action and how do you choose?BeginnerWrite a minimal composite action that installs Node and dependencies with caching.IntermediateWhat can a composite action not do compared to a job?IntermediateHow do you pass outputs out of a composite action?IntermediateWhat does `action.yml` contain for a JavaScript action?IntermediateWhy must a JavaScript action commit its `dist/` or `node_modules`?Intermediate