@@ -255,7 +255,8 @@ export async function scaleUp(eventSource: string, payload: ActionRequestMessage
255255 const onDemandFailoverOnError = process . env . ENABLE_ON_DEMAND_FAILOVER_FOR_ERRORS
256256 ? ( JSON . parse ( process . env . ENABLE_ON_DEMAND_FAILOVER_FOR_ERRORS ) as [ string ] )
257257 : [ ] ;
258- const ssmParameterStoreTags : { Key : string ; Value : string } [ ] = process . env . SSM_PARAMETER_STORE_TAGS && process . env . SSM_PARAMETER_STORE_TAGS . trim ( ) !== ''
258+ const ssmParameterStoreTags : { Key : string ; Value : string } [ ] =
259+ process . env . SSM_PARAMETER_STORE_TAGS && process . env . SSM_PARAMETER_STORE_TAGS . trim ( ) !== ''
259260 ? JSON . parse ( process . env . SSM_PARAMETER_STORE_TAGS )
260261 : [ ] ;
261262
@@ -415,10 +416,7 @@ async function createRegistrationTokenConfig(
415416
416417 for ( const instance of instances ) {
417418 await putParameter ( `${ githubRunnerConfig . ssmTokenPath } /${ instance } ` , runnerServiceConfig . join ( ' ' ) , true , {
418- tags : [
419- { Key : 'InstanceId' , Value : instance } ,
420- ...githubRunnerConfig . ssmParameterStoreTags
421- ] ,
419+ tags : [ { Key : 'InstanceId' , Value : instance } , ...githubRunnerConfig . ssmParameterStoreTags ] ,
422420 } ) ;
423421 if ( isDelay ) {
424422 // Delay to prevent AWS ssm rate limits by being within the max throughput limit
@@ -476,10 +474,7 @@ async function createJitConfig(githubRunnerConfig: CreateGitHubRunnerConfig, ins
476474 instance : instance ,
477475 } ) ;
478476 await putParameter ( `${ githubRunnerConfig . ssmTokenPath } /${ instance } ` , runnerConfig . data . encoded_jit_config , true , {
479- tags : [
480- { Key : 'InstanceId' , Value : instance } ,
481- ...githubRunnerConfig . ssmParameterStoreTags
482- ] ,
477+ tags : [ { Key : 'InstanceId' , Value : instance } , ...githubRunnerConfig . ssmParameterStoreTags ] ,
483478 } ) ;
484479 if ( isDelay ) {
485480 // Delay to prevent AWS ssm rate limits by being within the max throughput limit
0 commit comments