If you need to share workflows and other GitHub Actions features with your team, then consider collaborating within a GitHub organization. An organization allows you to centrally store and manage secrets, artifacts, and self-hosted runners. You can also create starter workflows in the
.github repository and share them with other users in your organization.
Your organization can share workflows by reusing the workflows exactly or by creating starter workflows that provide templates for new workflows.
组织中所有有权创建工作流的人员可利用入门工作流，更快、更轻松地创建工作流。 创建新工作流时，你可以选择入门工作流，系统将为你完成编写工作流的部分或全部工作。 你可以使用入门工作流作为基础来构建自定义工作流，或按原样使用。 这不仅可以节省时间，而且促进了整个组织的一致性和最佳做法。 For more information, see "Creating starter workflows for your organization."
You can centrally manage your secrets within an organization, and then make them available to selected repositories. This also means that you can update a secret in one location, and have the change apply to all repository workflows that use the secret.
When creating a secret in an organization, you can use a policy to limit which repositories can access that secret. For example, you can grant access to all repositories, or limit access to only private repositories or a specified list of repositories.
在 your enterprise 上，导航到组织的主页。
In the left sidebar, click Secrets.
Click New secret.
Type a name for your secret in the Name input box.
Enter the Value for your secret.
From the Repository access dropdown list, choose an access policy.
Click Add secret.
Organization admins can add their self-hosted runners to groups, and then create policies that control which repositories can access the group.
For more information, see "Managing access to self-hosted runners using groups."
To continue learning about GitHub Actions, see "Creating starter workflows for your organization."