Include actions-runner-controller in runner's User-Agent for better telemetry in Actions service. (#2155)

This commit is contained in:
Tingluo Huang
2023-01-14 19:35:56 -05:00
committed by GitHub
parent eaa451df32
commit 044c8ad4d5
2 changed files with 29 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import (
"strings"
"time"
"github.com/actions/actions-runner-controller/build"
"github.com/actions/actions-runner-controller/hash"
"github.com/go-logr/logr"
@@ -835,6 +836,10 @@ func newRunnerPodWithContainerMode(containerMode string, template corev1.Pod, ru
Name: "RUNNER_STATUS_UPDATE_HOOK",
Value: fmt.Sprintf("%v", useRunnerStatusUpdateHook),
},
{
Name: "GITHUB_ACTIONS_RUNNER_EXTRA_USER_AGENT",
Value: fmt.Sprintf("actions-runner-controller/%s", build.Version),
},
}
var seLinuxOptions *corev1.SELinuxOptions