From e4ff6c7acccf7315307f93e46db7e3c9b57a87c6 Mon Sep 17 00:00:00 2001 From: psofiterol Date: Wed, 14 Oct 2026 12:33:28 +0300 Subject: [PATCH 1/2] fix(aws.js): install actions/runner 2.338.0 GitHub has rejected runner registrations below 2.329.0 since 2026-09-29, so instances started with 2.313.0 never come online and the jobs waiting for them fail. Bump to 2.338.0, the current release. dist/index.js is rebuilt with npm ci && npm run package. --- dist/index.js | 4 ++-- src/aws.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9957adb8..4191d2d3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -148392,8 +148392,8 @@ mkdir actions-runner && cd actions-runner echo "${config.input.preRunnerScript}" > pre-runner-script.sh source pre-runner-script.sh case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=\${ARCH} -curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz -tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz +curl -O -L https://github.com/actions/runner/releases/download/v2.338.0/actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz +tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz cd .. export RUNNER_ALLOW_RUNASROOT=1 diff --git a/src/aws.js b/src/aws.js index 970c8122..44edd35d 100644 --- a/src/aws.js +++ b/src/aws.js @@ -28,8 +28,8 @@ mkdir actions-runner && cd actions-runner echo "${config.input.preRunnerScript}" > pre-runner-script.sh source pre-runner-script.sh case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=\${ARCH} -curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz -tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz +curl -O -L https://github.com/actions/runner/releases/download/v2.338.0/actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz +tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz cd .. export RUNNER_ALLOW_RUNASROOT=1 From 4824a0a6eb6628879bf591a74310c821e0c17639 Mon Sep 17 00:00:00 2001 From: psofiterol Date: Wed, 14 Oct 2026 12:35:47 +0300 Subject: [PATCH 2/2] fix(aws.js): clear the two lint errors that fail PR checks buildUserDataScript took an `idx` parameter that no caller passes (the `$idx` in the script is the bash loop variable), and RunInstances params set SubnetId twice with the same value. Neither change alters behaviour. --- dist/index.js | 3 +-- src/aws.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4191d2d3..97eab495 100644 --- a/dist/index.js +++ b/dist/index.js @@ -148368,7 +148368,7 @@ const core = __nccwpck_require__(7484); const config = __nccwpck_require__(1283); // User data scripts are run as the root user -function buildUserDataScript(githubRegistrationToken, label, idx) { +function buildUserDataScript(githubRegistrationToken, label) { if (config.input.runnerHomeDir) { // If runner home directory is specified, we expect the actions-runner software (and dependencies) // to be pre-installed in the AMI, so we simply cd into that directory and then start the runner @@ -148435,7 +148435,6 @@ async function startEc2Instance(label, githubRegistrationToken) { UserData: Buffer.from(userData).toString('base64'), SubnetId: config.input.subnetId, SecurityGroupIds: [config.input.securityGroupId], - SubnetId: config.input.subnetId, IamInstanceProfile: { Name: config.input.iamRoleName }, TagSpecifications: config.tagSpecifications, InstanceMarketOptions: buildMarketOptions(), diff --git a/src/aws.js b/src/aws.js index 44edd35d..80177bb8 100644 --- a/src/aws.js +++ b/src/aws.js @@ -4,7 +4,7 @@ const core = require('@actions/core'); const config = require('./config'); // User data scripts are run as the root user -function buildUserDataScript(githubRegistrationToken, label, idx) { +function buildUserDataScript(githubRegistrationToken, label) { if (config.input.runnerHomeDir) { // If runner home directory is specified, we expect the actions-runner software (and dependencies) // to be pre-installed in the AMI, so we simply cd into that directory and then start the runner @@ -71,7 +71,6 @@ async function startEc2Instance(label, githubRegistrationToken) { UserData: Buffer.from(userData).toString('base64'), SubnetId: config.input.subnetId, SecurityGroupIds: [config.input.securityGroupId], - SubnetId: config.input.subnetId, IamInstanceProfile: { Name: config.input.iamRoleName }, TagSpecifications: config.tagSpecifications, InstanceMarketOptions: buildMarketOptions(),