メモ
code scanning の既定のセットアップに対する より大きなランナー (larger runner) のサポートは、現在 パブリック プレビュー であり、変更される可能性があります。
About より大きなランナー (larger runner) for default setup
GitHub Team プランと GitHub Enterprise Cloud プランのお客様は、標準の GitHub ホステッド ランナーよりも多くのリソースを持つさまざまなマネージド仮想マシンから選択できます。 これらのマシンは "より大きなランナー (larger runner)" と呼ばれます。 これらには、次の高度な機能が用意されています。
- 追加の RAM、CPU、ディスク領域
- 静的 IP アドレス
- Azure プライベート ネットワーク
- ランナーをグループ化する機能
- 同時実行ワークフローをサポートするための自動スケール
- GPU 搭載ランナー
これらの より大きなランナー (larger runner) は、GitHub によってホストされ、ランナー アプリケーションとその他のツールをプレインストールしています。 For more information about より大きなランナー (larger runner), see より大きなランナー.
Consider configuring より大きなランナー (larger runner) for default setup if:
- Your scans with standard GitHub-hosted runners are taking too long.
- Your scans with standard GitHub-hosted runners are returning memory or disk errors.
- You want to customize aspects of your code scanning runner like the runner size, runner image, and job concurrency without using self-hosted runners.
警告
Currently, Swift analysis is not available on より大きなランナー (larger runner) 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 より大きなランナー (larger runner) 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 エンタープライズでのコードスキャン用のセルフホステッドランナーの構成. - 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.
Provisioning enterprise-level より大きなランナー (larger runner) 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
- Organization がより大きなランナーにアクセスできるようにするには、ランナーが割り当てられているランナー グループを使用できる Organization を指定します。 詳しくは、「より大きなランナーへのアクセスの制御」をご覧ください。
- 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 より大きなランナー (larger runner) 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 より大きなランナー (larger runner). For more information, see Configuring default setup for code scanning.
- 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 大規模なコード スキャンの既定のセットアップを構成する.