refactor: use const envvars
@@ -59,9 +59,9 @@ func (t *PodRunnerTokenInjector) Handle(ctx context.Context, req admission.Reque
return newEmptyResponse()
}
- enterprise, okEnterprise := getEnv(runnerContainer, "RUNNER_ENTERPRISE")
- repo, okRepo := getEnv(runnerContainer, "RUNNER_REPO")
- org, okOrg := getEnv(runnerContainer, "RUNNER_ORG")
+ enterprise, okEnterprise := getEnv(runnerContainer, EnvVarEnterprise)
+ repo, okRepo := getEnv(runnerContainer, EnvVarRepo)
+ org, okOrg := getEnv(runnerContainer, EnvVarOrg)
if !okRepo || !okOrg || !okEnterprise {
return newEmptyResponse()
}
