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: README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ For now, there is only a Debian Buster image, but I may add more variants in the
10
10
11
11
## Important notes
12
12
13
-
GitHub [recommends](https://help.github.com/en/github/automating-your-workflow-with-github-actions/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories) that you do **NOT** use self-hosted runners with public repositories, for security reasons.
13
+
* GitHub [recommends](https://help.github.com/en/github/automating-your-workflow-with-github-actions/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories) that you do **NOT** use self-hosted runners with public repositories, for security reasons.
14
+
* Organization level self-hosted runners are supported (see environment variables), but be advised that the GitHub API for organization level runners is still in public beta and subject to changes.
# or RUNNER_ORGANIZATION_URL=https://github.com/your-organization
60
63
GITHUB_ACCESS_TOKEN=the_runner_token
61
64
```
62
65
63
66
## Environment variables
64
67
65
68
The following environment variables allows you to control the configuration parameters.
66
69
67
-
| Name | Description | Default value |
70
+
| Name | Description | Required/Default value |
68
71
|------|---------------|-------------|
69
-
| RUNNER_REPOSITORY_URL | The runner will be linked to this repository URL | Required |
70
-
| GITHUB_ACCESS_TOKEN | Personal Access Token created on [your settings page](https://github.com/settings/tokens) with `repo` scole. Used to dynamically fetch a new runner token (recommended). | Required if `RUNNER_TOKEN` is not provided.
72
+
| RUNNER_REPOSITORY_URL | The runner will be linked to this repository URL | Required if `RUNNER_ORGANIZATION_URL` is not provided |
73
+
| RUNNER_ORGANIZATION_URL | The runner will be linked to this organization URL. *(Self-hosted runners API for organizations is currently in public beta and subject to changes)* | Required if `RUNNER_REPOSITORY_URL` is not provided |
74
+
| GITHUB_ACCESS_TOKEN | Personal Access Token. Used to dynamically fetch a new runner token (recommended, see below). | Required if `RUNNER_TOKEN` is not provided.
71
75
| RUNNER_TOKEN | Runner token provided by GitHub in the Actions page. These tokens are valid for a short period. | Required if `GITHUB_ACCESS_TOKEN` is not provided
72
76
| RUNNER_WORK_DIRECTORY | Runner's work directory | `"_work"`
73
77
| RUNNER_NAME | Name of the runner displayed in the GitHub UI | Hostname of the container
74
78
| RUNNER_REPLACE_EXISTING | `"true"` will replace existing runner with the same name, `"false"` will use a random name if there is conflict | `"true"`
75
79
80
+
## Runner Token
81
+
82
+
In order to link your runner to your repository/organization, you need to provide a token. There is two way of passing the token :
83
+
84
+
* via `GITHUB_ACCESS_TOKEN` (recommended), containing a [Personnal Access Token](https://github.com/settings/tokens). This token will be used to dynamically fetch a new runner token, as runner tokens are valid for a short period of time.
85
+
* For a single-repository runner, your PAT should have `repo` scopes.
86
+
* For an organization runner, your PAT should have `admin:org` scopes.
87
+
* via `RUNNER_TOKEN`. This token is displayed in the Actions settings page of your organization/repository, when opening the "Add Runner" page.
88
+
76
89
## Runner auto-update behavior
77
90
78
91
The GitHub runner (the binary) will update itself when receiving a job, if a new release is available.
0 commit comments