@@ -2,6 +2,8 @@ const AWS = require('aws-sdk');
22const core = require ( '@actions/core' ) ;
33const config = require ( './config' ) ;
44
5+ // https://github.com/actions/runner/releases
6+
57// User data scripts are run as the root user
68function buildUserDataScript ( githubRegistrationToken , label ) {
79 if ( config . input . runnerHomeDir ) {
@@ -23,8 +25,9 @@ function buildUserDataScript(githubRegistrationToken, label) {
2325 `echo "${ config . input . preRunnerScript } " > pre-runner-script.sh` ,
2426 'source pre-runner-script.sh' ,
2527 'case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=${ARCH}' ,
26- 'curl -O -L https://github.com/actions/runner/releases/download/2.306.0/actions-runner-linux-${RUNNER_ARCH}-2.306.0.tar.gz' ,
27- 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.306.0.tar.gz' ,
28+ 'export RUNNER_VERSION="2.309.0"' ,
29+ 'curl -O -L https://github.com/actions/runner/releases/download/${RUNNER_VERSION}/actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz' ,
30+ 'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz' ,
2831 'export RUNNER_ALLOW_RUNASROOT=1' ,
2932 `./config.sh --url https://github.com/${ config . githubContext . owner } /${ config . githubContext . repo } --token ${ githubRegistrationToken } --labels ${ label } --ephemeral` ,
3033 './run.sh' ,
0 commit comments