Skip to main content

Применение политик для проектов на предприятии

Вы можете применить политики для проекты и проекты (классическая модель) в организациях предприятия или разрешить настройку политик в каждой организации.

Кто эту функцию можно использовать?

Enterprise owners can enforce policies for projects in an enterprise.

About policies for projects in your enterprise

You can enforce policies to control how enterprise members manage projects and projects (classic), or you can allow organization owners to manage policies for projects and projects (classic) at the organization level.

Some policies apply to both Projects, the new projects experience, and projects (classic), the previous experience, while some apply only to projects (classic). For more information about each experience, see "About Projects" and "About projects (classic)."

Enforcing a policy for organization-wide projects

Across all organizations owned by your enterprise, you can enable or disable organization-wide projects (classic), or allow owners to administer the setting on the organization level.

  1. In the top-right corner of GitHub, click your profile photo, then click Your enterprises.

  2. In the list of enterprises, click the enterprise you want to view.

  3. In the enterprise account sidebar, click Policies.

  4. Under " Policies", click Projects.

  5. Under "Organization projects", review the information about changing the setting. Optionally, to view the current configuration for all organizations in the enterprise account before you change the setting, click View your organizations' current configurations.

    Screenshot of a policy in the enterprise settings. A link, labeled "View your organizations' current configurations", is highlighted with an orange outline.

  6. Under "Organization projects", select the dropdown menu and click a policy.

Enforcing a policy for visibility changes to projects

Across all organizations owned by your enterprise, you can enable or disable the ability for people with admin access to a project to change the visibility of the project, or you can allow owners to administer the setting on the organization level.

  1. In the top-right corner of GitHub, click your profile photo, then click Your enterprises.

  2. In the list of enterprises, click the enterprise you want to view.

  3. In the enterprise account sidebar, click Policies.

  4. Under " Policies", click Projects.

  5. Under "Project visibility change permission", review the information about changing the setting. Optionally, to view the current configuration for all organizations in the enterprise account before you change the setting, click View your organizations' current configurations.

    Screenshot of a policy in the enterprise settings. A link, labeled "View your organizations' current configurations", is highlighted with an orange outline.

  6. Select the dropdown menu, then click a policy.

Enforcing policies for projects (classic)

Some policies apply only to projects (classic).

Enforcing a policy for repository projects

Across all organizations owned by your enterprise, you can enable or disable repository-level projects, or allow owners to administer the setting at the organization level.

  1. In the top-right corner of GitHub, click your profile photo, then click Your enterprises.

  2. In the list of enterprises, click the enterprise you want to view.

  3. In the enterprise account sidebar, click Policies.

  4. Under " Policies", click Projects.

  5. Under "Repository projects", review the information about changing the setting. Optionally, to view the current configuration for all organizations in the enterprise account before you change the setting, click View your organizations' current configurations.

    Screenshot of a policy in the enterprise settings. A link, labeled "View your organizations' current configurations", is highlighted with an orange outline.

  6. Under "Repository projects", select the dropdown menu and click a policy.