A self-hosted runner can be located in either your repository, organization, or enterprise account settings on GitHub. To manage a self-hosted runner, you must have the following permissions, depending on where the self-hosted runner was added:
User repository: You must be the repository owner.
Organization: You must be an organization owner.
Organization repository: You must be an organization owner, or have admin access to the repository.
Creating a custom label
You can create custom labels for runners at the repository and organization levels.
Navigate to the main page of the repository where your self-hosted runner group is registered.
Click Settings.
In the left sidebar, click Actions, then click Runners.
In the list of runners, click on the name of the runner you'd like to configure.
In the "Labels" section, click .
In the "Find or create a label" field, type the name of your new label and click Create new label. The custom label is created and assigned to the self-hosted runner. Custom labels can be removed from self-hosted runners, but they currently can't be manually deleted. Any unused labels that are not assigned to a runner will be automatically deleted within 24 hours.
Creating a custom label for an organization runner
Navigate to the main page of the organization where your self-hosted runner group is registered.
Click Settings.
In the left sidebar, click Actions, then click Runners.
In the list of runners, click on the name of the runner you'd like to configure.
In the "Labels" section, click .
In the "Find or create a label" field, type the name of your new label and click Create new label. The custom label is created and assigned to the self-hosted runner. Custom labels can be removed from self-hosted runners, but they currently can't be manually deleted. Any unused labels that are not assigned to a runner will be automatically deleted within 24 hours.
Assigning a label to a self-hosted runner
You can assign labels to self-hosted runners at the repository and organization levels.
To programmatically assign labels to a self-hosted runner during the initial runner configuration, you can pass label names to the config script using the labels parameter.
Note
You cannot use the config script to assign labels to an existing self-hosted runner.
For example, this command assigns a label named gpu when configuring a new self-hosted runner:
The label is created if it does not already exist. You can also use this approach to assign the default labels to runners, such as x64 or linux. When default labels are assigned using the configuration script, GitHub Actions accepts them as given and does not validate that the runner is actually using that operating system or architecture.
You can use comma separation to assign multiple labels. For example: