Skip to content

Commit 378bd60

Browse files
sabrowning1jc-clarksubatoiSiaraMist
authored
Add content for larger runners for default setup (#48563)
Co-authored-by: Joe Clark <[email protected]> Co-authored-by: Ben Ahmady <[email protected]> Co-authored-by: Siara <[email protected]>
1 parent b10ebdb commit 378bd60

File tree

14 files changed

+108
-33
lines changed

14 files changed

+108
-33
lines changed

content/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners.md

+24-25
Large diffs are not rendered by default.

content/actions/using-github-hosted-runners/about-larger-runners/managing-larger-runners.md

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/cont
6565

6666
## Changing the name of a {% data variables.actions.hosted_runner %}
6767

68+
{% data reusables.actions.larger-runner-name-note %}
69+
6870
{% ifversion ghec %}
6971
You can edit the name of your {% data variables.actions.hosted_runner %}s.
7072

content/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ You can configure {% data variables.product.prodname_code_scanning %} to run {%
5757

5858
{% note %}
5959

60-
**Note:** If your enterprise uses {% data variables.product.prodname_dotcom %}-hosted runners with {% data variables.product.prodname_actions %}, proceed directly to configuring {% data variables.product.prodname_code_scanning %} through {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning)" and "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning-at-scale)."
60+
**Notes:**
61+
- If your enterprise uses {% data variables.product.prodname_dotcom %}-hosted runners with {% data variables.product.prodname_actions %}, proceed directly to configuring {% data variables.product.prodname_code_scanning %} through {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning)" and "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning-at-scale)."
62+
- With the exception of Swift analysis, default setup can now run on {% data variables.actions.hosted_runners %}. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners)" and "[AUTOTITLE](/code-security/code-scanning/managing-your-code-scanning-configuration/configuring-larger-runners-for-default-setup)."
6163

6264
{% endnote %}
6365

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Configuring larger runners for default setup
3+
shortTitle: Configure larger runners
4+
intro: 'You can run {% data variables.product.prodname_code_scanning %} default setup more quickly on bigger codebases using {% data variables.actions.hosted_runners %}.'
5+
product: '{% data reusables.gated-features.code-scanning %}'
6+
permissions: '{% data reusables.actions.larger-runner-permissions %}'
7+
versions:
8+
feature: default-setup-larger-runners
9+
topics:
10+
- Code scanning
11+
- CodeQL
12+
- Actions
13+
---
14+
15+
{% data reusables.code-scanning.beta-larger-runners-support %}
16+
17+
## About {% data variables.actions.hosted_runners %} for default setup
18+
19+
{% data reusables.actions.about-larger-runners %} For more information about {% data variables.actions.hosted_runners %}, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners)."
20+
21+
Consider configuring {% data variables.actions.hosted_runners %} for default setup if:
22+
- Your scans with standard {% data variables.product.prodname_dotcom %}-hosted runners are taking too long.
23+
- Your scans with standard {% data variables.product.prodname_dotcom %}-hosted runners are returning memory or disk errors.
24+
- You want to customize aspects of your {% data variables.product.prodname_code_scanning %} runner like the runner size, runner image, and job concurrency without using self-hosted runners.
25+
26+
{% warning %}
27+
28+
**Warning:** Currently, Swift analysis is not available on {% data variables.actions.hosted_runners %} for default setup. Additionally, if your repository has access to a runner with the `code-scanning` label, such as a {% data variables.actions.hosted_runner %} provisioned for default setup, default setup workflows will _only_ use runners labeled `code-scanning`. If you would like to configure default setup on {% data variables.actions.hosted_runners %} _and_ analyze Swift, you have two options:
29+
- Provision a self-hosted macOS runner with the `code-scanning` label in addition to your {% data variables.actions.hosted_runner %}. For more information, see {% ifversion ghec %}"[AUTOTITLE](/admin/code-security/managing-github-advanced-security-for-your-enterprise/configuring-code-scanning-for-your-appliance)."{% else %}"[AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-a-repository)."{% endif %}
30+
- 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.
31+
32+
{% endwarning %}
33+
34+
{% ifversion ghec %}
35+
36+
## Provisioning enterprise-level {% data variables.actions.hosted_runners %} for default setup
37+
38+
1. Add a {% data variables.actions.hosted_runner %} to your enterprise. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/managing-larger-runners#adding-a-larger-runner-to-an-enterprise)."
39+
- To add the `code-scanning` label to your {% data variables.actions.hosted_runner %}, name the runner `code-scanning`. An enterprise can only have one {% data variables.actions.hosted_runner %} named `code-scanning`, and that runner will handle all {% data variables.product.prodname_code_scanning %} jobs for all organizations and repositories within your enterprise that:
40+
- _Have access_ to the enterprise-level runner, and
41+
- _Don't have access_ to an organization-level {% data variables.actions.hosted_runner %} named `code-scanning`. If an organization or repository also has access to an organization-level {% data variables.actions.hosted_runner %} named `code-scanning`, each {% data variables.product.prodname_code_scanning %} job will be randomly assigned to either the organization-level or enterprise-level runner.
42+
{% data reusables.actions.org-access-to-github-hosted-runners %}
43+
1. To analyze repositories with default setup, grant the desired repositories access to the runner group your {% data variables.actions.hosted_runner %} is assigned to. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/managing-larger-runners#allowing-repositories-to-access-larger-runners)."
44+
1. You can now configure default setup for your enterprise, organizations, and repositories, and your {% data variables.actions.hosted_runner %} will automatically pick up {% data variables.product.prodname_code_scanning %} jobs as previously specified. For more information on configuring default setup, see "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning)" and "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning-at-scale)."
45+
{% endif %}
46+
47+
## Provisioning organization-level {% data variables.actions.hosted_runners %} for default setup
48+
49+
1. Add a {% data variables.actions.hosted_runner %} to your organization. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/managing-larger-runners#adding-a-larger-runner-to-an-organization)."
50+
- To add the `code-scanning` label to your {% data variables.actions.hosted_runner %}, name the runner `code-scanning`. An organization can only have one {% data variables.actions.hosted_runner %} with the `code-scanning` label, and that runner will handle all {% data variables.product.prodname_code_scanning %} jobs from repositories within your organization with access to the runner's group.
51+
1. By default, all repositories in your organization have access to organization-level runners, meaning every repository can use your {% data variables.actions.hosted_runner %}. For information on granting only select repositories access to a {% data variables.actions.hosted_runner %}, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/managing-larger-runners#allowing-repositories-to-access-larger-runners)."
52+
1. You can now configure default setup for your organization and repositories, and your {% data variables.actions.hosted_runner %} will automatically pick up {% data variables.product.prodname_code_scanning %} jobs. For more information on configuring default setup, see "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning)" and "[AUTOTITLE](/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning-at-scale)."

content/code-security/code-scanning/managing-your-code-scanning-configuration/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ children:
1616
- /about-the-tool-status-page
1717
- /editing-your-configuration-of-default-setup
1818
- /codeql-query-suites
19+
- /configuring-larger-runners-for-default-setup
1920
- /viewing-code-scanning-logs
2021
- /c-cpp-built-in-queries
2122
- /csharp-built-in-queries

content/code-security/code-scanning/troubleshooting-code-scanning/analysis-takes-too-long.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ There are several approaches you can try to reduce the build time in a {% data v
2121

2222
{% ifversion fpt or ghec %}
2323

24-
If you use self-hosted runners to run {% data variables.product.prodname_code_scanning %} analysis, you can increase the memory or the number of cores on those runners. If you're using {% data variables.product.prodname_codeql %} with advanced setup for your analysis, you can review the recommended hardware resources for {% data variables.product.prodname_codeql %} to make sure your self-hosted runners meet those requirements. For more information, see "[AUTOTITLE](/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/recommended-hardware-resources-for-running-codeql)."
24+
If you're using {% data variables.product.company_short %}-hosted runners for your {% data variables.product.prodname_code_scanning %} analysis, consider upgrading to {% data variables.actions.hosted_runners %}. These are {% data variables.product.company_short %}-hosted runners with more RAM, CPU, and disk space than standard runners. For more information about {% data variables.actions.hosted_runners %} and {% data variables.product.prodname_code_scanning %}, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners)" and "[AUTOTITLE](/code-security/code-scanning/managing-your-code-scanning-configuration/configuring-larger-runners-for-default-setup)."
2525

26-
If you're using {% data variables.product.company_short %}-hosted runners for your {% data variables.product.prodname_code_scanning %} analysis, you could consider upgrading to larger runners. These are {% data variables.product.company_short %}-hosted runners with more RAM, CPU, and disk space than standard runners. For more information about larger runners and the specifications you can use with them, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners)."
26+
If you're using self-hosted runners to run {% data variables.product.prodname_code_scanning %} analysis, you can increase the memory or the number of cores on those runners. If you're using {% data variables.product.prodname_codeql %} with advanced setup for your analysis, review the recommended hardware resources for {% data variables.product.prodname_codeql %} to make sure your self-hosted runners meet those requirements. For more information, see "[AUTOTITLE](/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/recommended-hardware-resources-for-running-codeql)."
2727

2828
{% elsif ghes %}
2929

content/code-security/code-scanning/troubleshooting-code-scanning/out-of-disk-or-memory.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Out of disk
2323
Out of memory
2424
```
2525

26-
You may see these errors on when running {% data variables.product.prodname_code_scanning %}.
26+
You may see these errors when running {% data variables.product.prodname_code_scanning %}.
2727

2828
## Confirming the cause of the problem
2929

@@ -37,9 +37,9 @@ You may need to increase the memory or disk space available on the runners used
3737

3838
{% else %}
3939

40-
If the runners that you're using don't meet the recommended hardware requirements, consider using either larger runners or self-hosted runners.
40+
If the runners you're using don't meet the recommended hardware requirements, consider using either {% data variables.actions.hosted_runners %} or self-hosted runners.
4141

42-
Larger runners are {% data variables.product.company_short %}-hosted runners with more RAM, CPU, and disk space than standard runners. These runners have the runner application and other tools preinstalled. For more information about larger runners and the specifications you can use with them, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners)."
42+
{% data variables.actions.hosted_runner_caps %}s are {% data variables.product.company_short %}-hosted runners with more RAM, CPU, and disk space than standard runners. These runners have the runner application and other tools preinstalled. For more information about {% data variables.actions.hosted_runners %} and {% data variables.product.prodname_code_scanning %}, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners)" and "[AUTOTITLE](/code-security/code-scanning/managing-your-code-scanning-configuration/configuring-larger-runners-for-default-setup)."
4343

4444
Self-hosted runners offer more control of hardware, operating system, and software tools than {% data variables.product.company_short %}-hosted runners can provide. For more information, see "[AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)."
4545
{% endif %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Default setup can now run on larger runners
2+
# Reference: #13175
3+
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
In addition to the [standard {% data variables.product.prodname_dotcom %}-hosted runners](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources), {% data variables.product.prodname_dotcom %} offers customers on {% data variables.product.prodname_team %} and {% data variables.product.prodname_ghe_cloud %} plans a range of managed virtual machines with more RAM, CPU, and disk space. These runners are hosted by {% data variables.product.prodname_dotcom %} and have the runner application and other tools preinstalled.
1+
In addition to the [standard {% data variables.product.prodname_dotcom %}-hosted runners](/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources), {% data variables.product.prodname_dotcom %} offers customers on {% data variables.product.prodname_team %} and {% data variables.product.prodname_ghe_cloud %} plans a range of managed virtual machines with more RAM, CPU, and disk space. These {% data variables.actions.hosted_runners %} are hosted by {% data variables.product.prodname_dotcom %} and have the runner application and other tools preinstalled.

data/reusables/actions/add-hosted-runner.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
- **Runner group**: Choose the group that your runner will be a member of. This group will host multiple instances of your runner, as they scale up and down to suit demand. {% ifversion ghec %}
99
- **Networking**: Choose whether static IP address ranges will be assigned to instances of the {% data variables.actions.hosted_runner %}. You can use up to 10 {% data variables.actions.hosted_runner %}s with static IP addresses in total. {% endif %}
1010

11+
{% data reusables.actions.larger-runner-name-note %}
12+
1113
1. Click **Create runner**.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% note %}
2+
3+
**Note:** The names of {% data variables.actions.hosted_runners %} can dictate their functionality. For example, to use a {% data variables.actions.hosted_runner %} for {% data variables.product.prodname_code_scanning %} default setup, the runner must be named `code-scanning`. For more information on {% data variables.product.prodname_code_scanning %} with {% data variables.actions.hosted_runners %}, see "[AUTOTITLE](/code-security/code-scanning/managing-your-code-scanning-configuration/configuring-larger-runners-for-default-setup)."
4+
5+
{% endnote %}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1. To allow organizations to access your {% data variables.actions.hosted_runner %}s, specify the list of organizations that can use it. For more information, see "[Managing access to your runners](#managing-access-to-your-runners)."
1+
1. To allow organizations to access your {% data variables.actions.hosted_runner %}, specify which organizations can use the runner group the runner is assigned to. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/about-larger-runners/controlling-access-to-larger-runners#changing-which-organizations-can-access-a-runner-group)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% note %}
2+
3+
**Note:** Support for {% data variables.actions.hosted_runners %} for {% data variables.product.prodname_code_scanning %} default setup is currently in beta and subject to change.
4+
5+
{% endnote %}

data/variables/actions.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
azure_portal: 'Azure Portal'
22
hosted_runner: 'larger runner'
33
hosted_runner_caps: 'Larger runner'
4+
hosted_runners: 'larger runners'

0 commit comments

Comments
 (0)