Skip to content

Allow removal of default runner tags #1240

Open
@sbrinkerhoff

Description

Describe the enhancement

Allow a flag (or another mechanism) to remove the default self-hosted, ${operating_system} and ${operating_system_arch} labels when connecting to a privately hosted Github Enterprise installation.

Code Snippet
n/a

Additional information

The current Github Runner agent adds default labels that include the self-hosted, operating system and architecture.

For enterprise rollouts we have a desire for Runners to be attached as an organizational default pool, org specific pools and repo specific pools we have noticed that folks following the default installation instructions will generally not initially tag their runners. The default workflows then use something such as self-hosted as the target. This generally works as long as their runner is the only runner attached.

Occasionally a group will attach another set of runners at an org level and it contains the same default tag. Without any clear change at the repo level, now the runner is randomly scheduled as the repo runner or the org runner.

Additionally some orgs may wish to manage an inhouse set of runners that are available to all orgs. In this case, they can inadvertently be used as well.

While internal documentation and best practice can help in this scenario, having a mechanism that allows the default tags to be removed and replaced would allow our enterprise-wide runners to not attach with self-hosted, and instead attach as enterprise-self-hosted or similar.

This would reduce the chances of a team accidentally building on a runner they did not intend to build on.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions