Примечание.
Поддержка более крупные бегуны для code scanning по умолчанию настроена в public preview и подлежит изменению.
Provisioning enterprise-level более крупные бегуны for default setup
- Add a крупное средство выполнения to your enterprise. For more information, see Управление большими бегунами.
- To add the
code-scanninglabel to your крупное средство выполнения, name the runnercode-scanning. An enterprise can only have one крупное средство выполнения namedcode-scanning, and that runner will handle all code scanning jobs for all organizations and repositories within your enterprise that:- Have access to the enterprise-level runner, and
- Don't have access to an organization-level крупное средство выполнения named
code-scanning. If an organization or repository also has access to an organization-level крупное средство выполнения namedcode-scanning, each code scanning job will be randomly assigned to either the organization-level or enterprise-level runner.
- To add the
- Чтобы разрешить организациям доступ к данным крупное средство выполнения, укажите, какие организации могут использовать группу runner, которой назначается средство выполнения. Дополнительные сведения см. в разделе Управление доступом к крупным средствам выполнения.
- To analyze repositories with default setup, grant the desired repositories access to the runner group your крупное средство выполнения is assigned to. For more information, see Управление большими бегунами.
- You can now configure default setup for your enterprise, organizations, and repositories, and your крупное средство выполнения will automatically pick up code scanning jobs as previously specified. For more information on configuring default setup, see Configuring default setup for code scanning and Настройка настройки по умолчанию для сканирования кода в масштабе.
Provisioning organization-level более крупные бегуны for default setup
-
Add a крупное средство выполнения to your organization. See Управление большими бегунами.
- To add a custom label to your крупное средство выполнения, give the runner a name that matches that label. You can use this custom label when you configure default setup with более крупные бегуны.
-
By default, all repositories in your organization have access to organization-level runners, meaning every repository can use your крупное средство выполнения. For information on granting only select repositories access to a крупное средство выполнения, see Управление большими бегунами.
-
You can now configure default setup for your organization and repositories, and your крупное средство выполнения will automatically pick up code scanning jobs. For more information on configuring default setup, see Configuring default setup for code scanning and Настройка настройки по умолчанию для сканирования кода в масштабе.
Extra steps for Swift analysis
Currently, Swift analysis is not available on более крупные бегуны for default setup. Additionally, if your repository has access to a runner with the code-scanning label, such as a крупное средство выполнения provisioned for default setup, default setup workflows will only use runners labeled code-scanning. If you would like to configure default setup on более крупные бегуны and analyze Swift, you have two options:
- Provision a self-hosted macOS runner with the
code-scanninglabel in addition to your крупное средство выполнения. For more information, see Configuring self-hosted runners for code scanning in your enterprise. - Ensure any repositories containing Swift do not have access to runners with the label
code-scanning. Default setup workflows for that repository will only use standard runners