Skip to content

Commit 1baf4af

Browse files
committed
fix: rename addGhRunnerIdToEC2InstanceTag to tagRunnerId for clarity
1 parent 7b711c0 commit 1baf4af

File tree

1 file changed

+2
-2
lines changed
  • lambdas/functions/control-plane/src/scale-runners

1 file changed

+2
-2
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ async function createRegistrationTokenConfig(
416416
}
417417
}
418418

419-
async function addGhRunnerIdToEC2InstanceTag(instanceId: string, runnerId: string): Promise<void> {
419+
async function tagRunnerId(instanceId: string, runnerId: string): Promise<void> {
420420
try {
421421
await tag(instanceId, [{ Key: 'ghr:github_runner_id', Value: runnerId }]);
422422
} catch (e) {
@@ -458,7 +458,7 @@ async function createJitConfig(githubRunnerConfig: CreateGitHubRunnerConfig, ins
458458
metricGitHubAppRateLimit(runnerConfig.headers);
459459

460460
// tag the EC2 instance with the Github runner id
461-
await addGhRunnerIdToEC2InstanceTag(instance, runnerConfig.data.runner.id.toString());
461+
await tagRunnerId(instance, runnerConfig.data.runner.id.toString());
462462

463463
// store jit config in ssm parameter store
464464
logger.debug('Runner JIT config for ephemeral runner generated.', {

0 commit comments

Comments
 (0)