Skip to main content

Sharing actions and workflows with your enterprise

You can share an action or reusable workflow with your enterprise without publishing the action or workflow publicly.

About GitHub Actions access to internal and private repositories

If your organization is owned by an enterprise account, you can share actions and reusable workflows within your enterprise, without publishing them publicly, by allowing GitHub Actions workflows to access an internal or private repository that contains the action or reusable workflow.

Any actions or reusable workflows stored in the internal or private repository can be used in workflows defined in other internal or private repositories owned by the same organization, or by any organization owned by the enterprise. 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.

Advertencia

  • Si haces que un repositorio privado sea accesible a los flujos de trabajo de GitHub Actions de otros repositorios, los colaboradores externos de otros repositorios pueden acceder a él indirectamente a pesar de que no tengan acceso directo a estos repositorios. Los colaboradores externos pueden ver registros de las ejecuciones de flujo de trabajo cuando se utilizan acciones o flujos de trabajo del repositorio privado.
  • Para permitir que los ejecutores descarguen estas acciones, GitHub pasa un token de instalación con ámbito al ejecutor. Este token tiene acceso de lectura al repositorio y expira automáticamente después de una hora.

Sharing actions and workflows with your enterprise

  1. Store the action or reusable workflow in an internal or private repository. For more information, see Acerca de los repositorios.
  2. Configure the repository to allow access to workflows in other internal or private repositories. For more information, see Administrar los ajustes de las GitHub Actions de un repositorio and Administrar los ajustes de las GitHub Actions de un repositorio.

Further reading