Skip to main content

Sharing actions and workflows from your private repository

You can share an action or reusable workflow without publishing them publicly.

About GitHub Actions access to private repositories

You can share actions and reusable workflows from your private repository, without making them public, by allowing GitHub Actions workflows to access a private repository that contains the action or reusable workflow.

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 or user. Actions and reusable workflows stored in private repositories cannot be used in public repositories.

Предупреждение

  • If you make a private repository accessible to GitHub Actions workflows in other repositories, outside collaborators on the other repositories can indirectly access the private repository, even though they do not have direct access to these repositories. The outside collaborators can view logs for workflow runs when actions or workflows from the private repository are used.
  • Чтобы разрешить бегунам загружать эти действия, GitHub передает маркер установки в средство выполнения с заданной областью. Этот маркер имеет доступ на чтение к репозиторию и автоматически истекает через один час.

Sharing actions and workflows from your private repository

  1. Store the action or reusable workflow in a private repository. For more information, see Сведения о репозиториях.
  2. Configure the repository to allow access to workflows in other private repositories. For more information, see Управление параметрами GitHub Actions для репозитория.

Further reading