You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/authenticating-to-the-github-api.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,46 @@ ARC can use {% data variables.product.pat_v1_plural %} to register self-hosted r
85
85
86
86
{% data reusables.actions.actions-runner-controller-helm-chart-options %}
87
87
88
+
## Authenticating ARC with a {% data variables.product.pat_v2 %}
89
+
90
+
ARC can use {% data variables.product.pat_v2_plural %} to register self-hosted runners.
91
+
92
+
{% ifversion ghec or ghes %}
93
+
94
+
> [!NOTE]
95
+
> Authenticating ARC with a {% data variables.product.pat_v1 %} is the only supported authentication method to register runners at the enterprise level.
96
+
97
+
{% endif %}
98
+
99
+
1. Create a {% data variables.product.pat_v2 %} with the required scopes. The required scopes are different depending on whether you are registering runners at the repository or organization level. For more information on how to create a {% data variables.product.pat_v2 %}, see [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token).
100
+
101
+
The following is the list of required {% data variables.product.pat_generic %} scopes for ARC runners.
102
+
103
+
* Repository runners:
104
+
* **Administration:** Read and write
105
+
106
+
* Organization runners:
107
+
* **Administration:** Read
108
+
* **Self-hosted runners:** Read and write
109
+
110
+
1. To create a Kubernetes secret with the value of your {% data variables.product.pat_v2 %}, use the following command.
111
+
112
+
{% data reusables.actions.arc-runners-namespace %}
1. In your copy of the [`values.yaml`](https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set/values.yaml) file, pass the secret name as a reference.
121
+
122
+
```yaml
123
+
githubConfigSecret: pre-defined-secret
124
+
```
125
+
126
+
{% data reusables.actions.actions-runner-controller-helm-chart-options %}
Copy file name to clipboardExpand all lines: content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,8 @@ When specifying actions{% ifversion actions-workflow-policy %} and reusable work
77
77
* To allow all actions{% ifversion actions-workflow-policy %} and reusable workflows{% endif %} in organizations that start with `space-org`, use `space-org*/*`.
78
78
* To allow all actions{% ifversion actions-workflow-policy %} and reusable workflows{% endif %} in repositories that start with octocat, use `*/octocat**@*`.
79
79
80
+
Policies never restrict access to local actions on the runner filesystem (where the `uses:` path start with `./`).
81
+
80
82
## Runners
81
83
82
84
By default, anyone with admin access to a repository can add a self-hosted runner for the repository, and self-hosted runners come with risks:
0 commit comments