Nota: Los ejecutores hospedados en GitHub no son compatibles con GitHub Enterprise Server actualmente. Puedes encontrar más información sobre el soporte que se tiene planeado en el futuro en el Itinerario público de GitHub.
About automatic access to GitHub.com actions
By default, GitHub Actions workflows on GitHub Enterprise Server cannot use actions directly from GitHub.com or GitHub Marketplace. To make all actions from GitHub.com available on your enterprise instance, you can use GitHub Connect to integrate GitHub Enterprise Server with Nube de GitHub Enterprise.
To use actions from GitHub.com, both tu instancia de GitHub Enterprise Server and your self-hosted runners must be able to make outbound connections to GitHub.com. No inbound connections from GitHub.com are required. Para obtener más información Para obtener más información, consulta la sección "Acerca de los ejecutores auto-hospedados".
Alternatively, if you want stricter control over which actions are allowed in your enterprise, you can manually download and sync actions onto your enterprise instance using the actions-sync
tool. For more information, see "Manually syncing actions from GitHub.com."
About resolution for actions using GitHub Connect
When a workflow uses an action by referencing the repository where the action is stored, GitHub Actions will first try to find the repository on tu instancia de GitHub Enterprise Server. If the repository does not exist on tu instancia de GitHub Enterprise Server, and if you have automatic access to GitHub.com enabled, GitHub Actions will try to find the repository on GitHub.com.
If a user has already created an organization and repository in your enterprise that matches an organization and repository name on GitHub.com, the repository on your enterprise will be used instead of the GitHub.com repository. A malicious user could take advantage of this behavior to run code as part of a workflow
Enabling automatic access to all GitHub.com actions
Before enabling access to all actions from GitHub.com for your enterprise, you must:
- Configure tu instancia de GitHub Enterprise Server to use GitHub Actions. For more information, see "Getting started with GitHub Actions for GitHub Enterprise Server."
- Enable GitHub Connect. For more information, see "Managing GitHub Connect."
-
En la esquina superior derecha de GitHub Enterprise Server, da clic en tu foto de perfil y luego en Configuración de empresa.
-
En la barra lateral de la cuenta empresarial, haz clic en GitHub Connect.
-
Under "Users can utilize actions from GitHub.com in workflow runs", use the drop-down menu and select Enabled.
-
Después de que habilitas GitHub Connect, puedes utilizar políticas para restringir qué acciones públicas se pueden utilizar en los repositorios de tu empresa. Para obtener más información, consulta la sección "Requerir las políticas de GitHub Actions para tu empresa".