diff --git a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/scale-down.ts b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/scale-down.ts index 2f49ad66fc..07568f805f 100644 --- a/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/scale-down.ts +++ b/terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners/scale-down.ts @@ -393,7 +393,7 @@ export async function minRunners(ec2runner: RunnerInfo, metrics: ScaleDownMetric } const repo: Repo = (() => { - if (Config.Instance.enableOrganizationRunners) { + if (Config.Instance.scaleConfigRepo) { return { owner: ec2runner.org !== undefined ? (ec2runner.org as string) : getRepo(ec2runner.repo as string).owner, repo: Config.Instance.scaleConfigRepo,