Note: GitHub-hosted runners are not currently supported on GitHub Enterprise Server. You can see more information about planned future support on the GitHub public roadmap.
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 GitHub Enterprise Cloud. For other ways of accessing actions from GitHub.com, see "About using actions in your enterprise."
To use actions from GitHub.com, your self-hosted runners must be able to download public actions from api.github.com
.
Enabling automatic access to all GitHub.com actions
Before enabling access to all actions from GitHub.com for your enterprise, you must:
- Configure your GitHub Enterprise Server instance 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."
Note: When a workflow uses an action by referencing the repository where the action is stored, GitHub Actions will try to find the repository on your GitHub Enterprise Server instance first before falling back to GitHub.com. If a user creates an organization and repository in your enterprise that matches an organization and repository name on GitHub, the repository on your enterprise will be used in place of the GitHub repository. A malicious user could take advantage of this behavior to run code as part of a workflow.
-
In the top-right corner of GitHub Enterprise Server, click your profile photo, then click Enterprise settings.
-
In the enterprise account sidebar, click Settings.
-
In the left sidebar, click GitHub Connect.
-
Under "Server can use actions from GitHub.com in workflows runs", use the drop-down menu and select Enabled.
-
After you enable GitHub Connect, you can use policies to restrict which public actions can be used in repositories in your enterprise. For more information, see "Enforcing GitHub Actions policies for your enterprise."