A reusable workflow can be used by another workflow if any of the following is true:
- Both workflows are in the same repository.
- The called workflow is stored in a public repository.
- The called workflow is stored in an internal repository and the settings for that repository allow it to be accessed. For more information, see "Managing GitHub Actions settings for a repository."
Anyone who could elaborate on this? I just spent 2 hours setting this up in our org and it seems it was for nought. I get:
error parsing called workflow "org/reusable-workflows/.github/workflows/tf_wf.yml@develop":
Workflows in 'org/my-repo' cannot access remote workflows in 'org/reusable-workflows'.
See https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
So since you are on GitHub Enterprise Cloud you can put a reusable worflow in a internal repository, and use it in other repositories of you organization and/or enterprise, but you must give access/permissions.
Go to you Reusable Workflow repository (the one that contains the workflow you want to call)
Click on Settings
Click on Actions
Go at the bottom of the configuration page, in the Access section
@tgrall I am not using enterprise repo but I am able to create internal repo in the organization. I gave the appropriate permission for the internal repo but, still not able to access it from the calling repo. Is this expected?