How do you reference a reusable workflow from a private repository?
IntermediateConceptCustom Actions & Reusable Workflows
Answer
Use the full path with a ref, and in the source repo's Settings, Actions, General, set Access to "Accessible from repositories in the organization" (or enterprise). Then:
uses: devopsshack/platform-workflows/.github/workflows/build.yml@3f1e2d4c... # SHA or tag
The same access setting governs private actions. Without it the caller fails with an error that the workflow was not found or is not accessible.
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