Skip to content

Commit fc129a0

Browse files
authored
Merge pull request github#16045 from github/repo-sync
repo sync
2 parents 0f1228e + a35a563 commit fc129a0

File tree

66 files changed

+371
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+371
-172
lines changed
Binary file not shown.
Binary file not shown.
-39.2 KB
Binary file not shown.
17.5 KB
Loading
36 KB
Loading
48.8 KB
Loading

content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ You can configure a subject that filters for a specific [environment](/actions/d
164164

165165
#### Filtering for `pull_request` events
166166

167-
The subject claim includes the `pull_request` string when the workflow is triggered by a pull request event.
167+
The subject claim includes the `pull_request` string when the workflow is triggered by a pull request event, but only if the job doesn't reference an environment.
168168

169169
You can configure a subject that filters for the [`pull_request`](/actions/learn-github-actions/events-that-trigger-workflows#pull_request) event. In this example, the workflow run must have been triggered by a `pull_request` event in a repository named `octo-repo` that is owned by the `octo-org` organization:
170170

content/actions/guides.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ learningTracks:
1313
- continuous_integration
1414
- continuous_deployment
1515
- deploy_to_the_cloud
16-
- '{% ifversion ghec or ghes or ghae %}adopting_github_actions_for_your_enterprise{% endif %}'
16+
- adopting_github_actions_for_your_enterprise_ghec
17+
- adopting_github_actions_for_your_enterprise_ghes_and_ghae
1718
- hosting_your_own_runners
1819
- create_actions
1920
includeGuides:

content/actions/hosting-your-own-runners/about-self-hosted-runners.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ versions:
1212
type: overview
1313
---
1414

15-
{% data reusables.actions.ae-self-hosted-runners-notice %}
1615
{% data reusables.actions.enterprise-beta %}
1716
{% data reusables.actions.enterprise-github-hosted-runners %}
1817

1918
## About self-hosted runners
2019

21-
{% data reusables.actions.self-hosted-runner-description %} Self-hosted runners can be physical, virtual, in a container, on-premises, or in a cloud.
20+
A self-hosted runner is a system that you deploy and manage to execute jobs from {% data variables.product.prodname_actions %} on {% ifversion ghae or ghec %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %}. For more information about {% data variables.product.prodname_actions %}, see "[Understanding {% data variables.product.prodname_actions %}](/actions/learn-github-actions/understanding-github-actions){% ifversion fpt %}."{% elsif ghec or ghes or ghae %}" and "[About {% data variables.product.prodname_actions %} for enterprises](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/about-github-actions-for-enterprises)."{% endif %}
21+
22+
{% data reusables.actions.self-hosted-runner-description %} {% data reusables.actions.self-hosted-runner-locations %}
23+
24+
{% data reusables.actions.self-hosted-runner-architecture %} {% data reusables.actions.runner-app-open-source %} When a new version is released, the runner application automatically updates itself when a job is assigned to the runner, or within a week of release if the runner hasn't been assigned any jobs.
2225

2326
You can add self-hosted runners at various levels in the management hierarchy:
2427
- Repository-level runners are dedicated to a single repository.
@@ -59,7 +62,7 @@ You can use any machine as a self-hosted runner as long at it meets these requir
5962
* The machine has enough hardware resources for the type of workflows you plan to run. The self-hosted runner application itself only requires minimal resources.
6063
* If you want to run workflows that use Docker container actions or service containers, you must use a Linux machine and Docker must be installed.
6164

62-
{% ifversion fpt or ghes > 3.2 or ghec %}
65+
{% ifversion fpt or ghes > 3.2 or ghec or ghae-issue-4462 %}
6366
## Autoscaling your self-hosted runners
6467

6568
You can automatically increase or decrease the number of self-hosted runners in your environment in response to the webhook events you receive. For more information, see "[Autoscaling with self-hosted runners](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)."
@@ -133,12 +136,7 @@ The self-hosted runner polls {% data variables.product.product_name %} to retrie
133136

134137
{% data reusables.actions.self-hosted-runner-ports-protocols %}
135138

136-
{% ifversion ghae %}
137-
You must ensure that the self-hosted runner has appropriate network access to communicate with the {% data variables.product.prodname_ghe_managed %} URL and its subdomains.
138-
For example, if your instance name is `octoghae`, then you will need to allow the self-hosted runner to access `octoghae.githubenterprise.com`, `api.octoghae.githubenterprise.com`, and `codeload.octoghae.githubenterprise.com`.
139-
140-
If you use an IP address allow list for your {% data variables.product.prodname_dotcom %} organization or enterprise account, you must add your self-hosted runner's IP address to the allow list. For more information, see "[Managing allowed IP addresses for your organization](/organizations/keeping-your-organization-secure/managing-allowed-ip-addresses-for-your-organization#using-github-actions-with-an-ip-allow-list)."
141-
{% endif %}
139+
{% data reusables.actions.self-hosted-runner-communications-for-ghae %}
142140

143141
{% ifversion fpt or ghec %}
144142

@@ -242,3 +240,11 @@ Untrusted workflows running on your self-hosted runner pose significant security
242240
* Persisting unwanted or dangerous data on the machine.
243241

244242
For more information about security hardening for self-hosted runners, see "[Security hardening for {% data variables.product.prodname_actions %}](/actions/security-guides/security-hardening-for-github-actions#hardening-for-self-hosted-runners)."
243+
244+
{% ifversion ghec or ghes or ghae %}
245+
246+
## Further reading
247+
248+
- "[Getting started with self-hosted runners for your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise)"
249+
250+
{% endif %}

content/actions/hosting-your-own-runners/adding-self-hosted-runners.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type: tutorial
1313
shortTitle: Add self-hosted runners
1414
---
1515

16-
{% data reusables.actions.ae-self-hosted-runners-notice %}
1716
{% data reusables.actions.enterprise-beta %}
1817
{% data reusables.actions.enterprise-github-hosted-runners %}
1918

@@ -33,6 +32,16 @@ For more information, see "[About self-hosted runners](/github/automating-your-w
3332
{% endwarning %}
3433
{% endif %}
3534

35+
{% ifversion fpt or ghec or ghes > 3.2 %}
36+
37+
You can set up automation to scale the number of self-hosted runners. For more information, see "[Autoscaling with self-hosted runners](/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners)."
38+
39+
{% endif %}
40+
41+
## Prerequisites
42+
43+
{% data reusables.actions.self-hosted-runners-prerequisites %}
44+
3645
## Adding a self-hosted runner to a repository
3746

3847
You can add self-hosted runners to a single repository. To add a self-hosted runner to a user repository, you must be the repository owner. For an organization repository, you must be an organization owner or have admin access to the repository. For information about how to add a self-hosted runner with the REST API, see "[Self-hosted runners](/rest/reference/actions#self-hosted-runners)."
@@ -53,6 +62,8 @@ You can add self-hosted runners to a single repository. To add a self-hosted run
5362
{% endif %}
5463
{% data reusables.actions.self-hosted-runner-check-installation-success %}
5564

65+
For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)."
66+
5667
## Adding a self-hosted runner to an organization
5768

5869
You can add self-hosted runners at the organization level, where they can be used to process jobs for multiple repositories in an organization. To add a self-hosted runner to an organization, you must be an organization owner. For information about how to add a self-hosted runner with the REST API, see "[Self-hosted runners](/rest/reference/actions#self-hosted-runners)."
@@ -71,39 +82,31 @@ You can add self-hosted runners at the organization level, where they can be use
7182
1. Under {% ifversion ghes > 3.1 or ghae %}"Runners", click **Add new**, then click **New runner**.{% elsif ghes < 3.2 %}"Self-hosted runners", click **Add runner**."{% endif %}
7283
{% data reusables.actions.self-hosted-runner-configure %}
7384
{% endif %}
74-
7585
{% data reusables.actions.self-hosted-runner-check-installation-success %}
7686

87+
For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)."
88+
7789
{% data reusables.actions.self-hosted-runner-public-repo-access %}
7890

7991
## Adding a self-hosted runner to an enterprise
8092

8193
{% ifversion fpt %}If you use {% data variables.product.prodname_ghe_cloud %}, you{% elsif ghec or ghes or ghae %}You{% endif %} can add self-hosted runners to an enterprise, where they can be assigned to multiple organizations. The organization admins are then able to control which repositories can use it. {% ifversion fpt %}For more information, see the [{% data variables.product.prodname_ghe_cloud %} documentation](/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-an-enterprise).{% endif %}
8294

8395
{% ifversion ghec or ghes or ghae %}
84-
8596
New runners are assigned to the default group. You can modify the runner's group after you've registered the runner. For more information, see "[Managing access to self-hosted runners](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#moving-a-self-hosted-runner-to-a-group)."
8697

8798
{% ifversion ghec or ghes > 3.3 or ghae-issue-5091 %}
88-
To add a self-hosted runner to an enterprise account, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners).
8999

90-
{% data reusables.enterprise-accounts.access-enterprise %}
91-
{% data reusables.enterprise-accounts.policies-tab %}
92-
{% data reusables.enterprise-accounts.actions-tab %}
93-
{% data reusables.enterprise-accounts.actions-runners-tab %}
94-
1. Click **New runner**.
95-
{% data reusables.actions.self-hosted-runner-configure %}
96-
{% elsif ghae or ghes < 3.4 %}
97-
To add a self-hosted runner at the enterprise level of {% data variables.product.product_location %}, you must be a site administrator.
98-
{% data reusables.enterprise-accounts.access-enterprise %}
99-
{% data reusables.enterprise-accounts.policies-tab %}
100-
{% data reusables.enterprise-accounts.actions-tab %}
101-
{% data reusables.enterprise-accounts.actions-runners-tab %}
102-
1. Click **Add new**, then click **New runner**.
103-
{% data reusables.actions.self-hosted-runner-configure %}
100+
To add a self-hosted runner to an enterprise, you must be an enterprise owner. For information about how to add a self-hosted runner with the REST API, see the enterprise endpoints in the [{% data variables.product.prodname_actions %} REST API](/rest/reference/actions#self-hosted-runners).
101+
104102
{% endif %}
103+
104+
{% data reusables.actions.self-hosted-runner-add-to-enterprise %}
105+
105106
{% data reusables.actions.self-hosted-runner-check-installation-success %}
106107

108+
For more information, see "[Monitoring and troubleshooting self-hosted runners](/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners)."
109+
107110
{% data reusables.actions.self-hosted-runner-public-repo-access %}
108111

109112
### Making enterprise runners available to repositories
@@ -114,3 +117,11 @@ To make an enterprise-level self-hosted runner group available to an organizatio
114117

115118
For more information on changing runner group access settings, see "[Managing access to self-hosted runners using groups](/actions/hosting-your-own-runners/managing-access-to-self-hosted-runners-using-groups#changing-the-access-policy-of-a-self-hosted-runner-group)."
116119
{% endif %}
120+
121+
{% ifversion ghec or ghes or ghae %}
122+
123+
## Further reading
124+
125+
- "[Getting started with self-hosted runners for your enterprise](/admin/github-actions/getting-started-with-github-actions-for-your-enterprise/getting-started-with-self-hosted-runners-for-your-enterprise)"
126+
127+
{% endif %}

0 commit comments

Comments
 (0)