Skip to main content

关于操作策略

通过 Actions 策略,您可以管理 GitHub Actions 工作流在组织内各仓库中的运行方式,首先从工作流执行保护开始。

注意

Actions policies are in 公开预览 and subject to change.

About Actions policies

Actions policies let you govern how GitHub Actions workflows run across your organizations and repositories. You configure Actions policies in a new Policies section of your GitHub Actions settings, separate from your existing General settings.

Actions policies are available at the enterprise, organization, and repository levels.

Actions policies currently contain one type of policy: workflow execution protections. GitHub plans to add more policies over time.

About workflow execution protections

Workflow execution protections let you define an allow list that controls who can trigger GitHub Actions workflows and which events are permitted to run them. Workflow execution protections come with two rule types: event and actor. GitHub plans to add more rules over time.

Workflow execution protections are built on the GitHub rulesets framework, so the targeting you already know from rulesets works here too. You can apply protections with rulesets and scope them to specific repositories using repository custom properties. For more information about rulesets, see 关于规则集.

后续步骤

若要为组织配置工作流执行保护,包括设置事件和执行组件规则,请参阅 工作流执行保护机制