About GitHub Actions on GitHub Enterprise Cloud
GitHub Actions is enabled for your enterprise by default. To get started using GitHub Actions within your enterprise, you can manage the policies that control how enterprise members use GitHub Actions and optionally add self-hosted runners to run workflows.
在开始之前,应制定一个计划,了解如何将 GitHub Actions 引入企业。 有关详细信息,请参阅“为企业引入 GitHub Actions”。
如果要将企业从其他提供商迁移到 GitHub Actions,则需要考虑其他注意事项。 有关详细信息,请参阅“将企业迁移到 GitHub Actions”。
Managing policies for GitHub Actions
You can use policies to control how enterprise members use GitHub Actions. For example, you can restrict which actions are allowed and configure artifact and log retention. For more information, see 在企业中为 GitHub Actions 实施策略.
Adding runners
To run GitHub Actions workflows, you need to use runners. 运行程序是触发工作流时运行工作流的服务器。 If you use GitHub-hosted runners, you will be billed based on consumption after exhausting the minutes included in your plan, whereas self-hosted runners are free. For more information, see 关于 GitHub Actions 的计费.
For more information, see 关于自托管运行程序.
If you choose self-hosted runners, you can add runners at the enterprise, organization, or repository levels. For more information, see 添加自托管的运行器.
Provisioning fine-grained permissions for GitHub Actions
Organization owners and users with the "Manage custom organization roles" permission can provision fine-grained permissions for users and teams in your organization. Provisioning fine-grained permissions for GitHub Actions allows you to practice the principle of least privilege to secure settings in your GitHub Actions CI/CD pipeline.
对于 GitHub Actions,可以为组织中的个人或团队启用以下任何权限。
- 管理组织操作策略: 访问以管理“操作常规”设置页上的所有设置,但自托管运行器设置除外。
- 管理组织运行器和运行器组: 访问并创建和管理 GitHub 托管的运行器、自托管运行器和运行器组,并控制可以创建自托管运行器的位置。
- 管理组织操作机密:访问并创建和管理操作组织机密。
- 管理组织操作变量:访问并创建和管理操作组织变量。
For more information, see 管理自定义组织角色.