ノート: GitHubホストランナーは、現在GitHub Enterprise Serverでサポートされていません。 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 GitHub Enterprise Cloud.
GitHub.comからのアクションを利用する場合、GitHub Enterprise ServerインスタンスとセルフホストランナーはGitHub.comへのアウトバウンドコネクションができなければなりません。 GitHub.comからのインバウンドコネクションは必要ありません。 詳しい情報について。 詳しい情報については、「セルフホストランナーについて」を参照してください。
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
保存されているリポジトリを参照する事によってワークフローがアクションを使う場合、GitHub ActionsはまずGitHub Enterprise Serverインスタンス上のリポジトリを見つけようとします。 GitHub Enterprise Serverインスタンス上にリポジトリが存在せず、GitHub.comへの自動アクセスが有効化されているなら、GitHub Actionsはリポジトリを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 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."
-
GitHub Enterprise Serverの右上で、プロフィール写真をクリックし、続いてEnterprise settings(Enterpriseの設定)をクリックしてください。
-
Enterpriseアカウントのサイドバーで、 GitHub Connectをクリックしてください。
-
Under "Users can utilize actions from GitHub.com in workflow runs", use the drop-down menu and select Enabled.
-
GitHub Connectを有効化した後は、Enterprise内のリポジトリでどのパブリックなアクションが使えるかを制限するポリシーが利用できます。 詳しい情報については、「Enterprise に GitHub Actions のポリシーを施行する」を参照してください。