Reputation: 195
I've created 2 workflows, one is caller workflow A
in repository A
and other is called workflow B
in repository B
.
Both the repositories are part of Github Org OrgName
.
Workflow B
in repository B
is intended to be reusable by certain private repositories in my Github Org, not all private repositories.
Github says that all private repositories in an org will get access to a private reusable workflow.
https://docs.github.com/en/actions/creating-actions/sharing-actions-and-workflows-with-your-organization#about-github-actions-access-to-private-repositories
Any actions or reusable workflows stored in the private repository can be used in workflows defined in other private repositories owned by the same organization. Actions and reusable workflows stored in internal repositories cannot be used in public repositories and actions and reusable workflows stored in private repositories cannot be used in public or internal repositories.
How can I make sure only selected private repos in my org are able to use this reusable workflow A
.
Thanks!
Upvotes: 0
Views: 111