Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

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.

All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows