fix(ci): install linters on linux/arm64 runners (#15350)

The Linux lanes now route to the ARM64 self-hosted fleet, but the linter
bootstrap only mapped linux/x64 (plus both macOS arches), so `--setup`
threw "Unsupported platform/architecture: linux/arm64" and every real lint
step after it was skipped — the lane was red having checked nothing.

Pin the ARM64 builds the two linter steps already know how to unpack:
actionlint 1.7.12 linux_arm64 and shellcheck 0.11.0 linux.aarch64, with
digests recomputed from the exact release URLs the installer builds.
This commit is contained in:
Shaojin Wen 2026-10-23 17:49:15 +08:00 • committed by GitHub
parent da1ee5f93d
commit 519bcdd596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,8 @@ const YAMLLINT_VERSION = '1.35.1';
const ACTIONLINT_SHA256 = {
linux_amd64:
'8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8',
linux_arm64:
'325e971b6ba9bfa504672e29be93c24981eeb1c07576d730e9f7c8805afff0c6',
darwin_amd64:
'5b44c3bc2255115c9b69e30efc0fecdf498fdb63c5d58e17084fd5f16324c644',
darwin_arm64:
@ -26,6 +28,8 @@ const ACTIONLINT_SHA256 = {
const SHELLCHECK_SHA256 = {
'linux.x86_64':
'8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198',
'linux.aarch64':
'12b331c1d2db6b9eb13cfca64306b1b157a86eb69db83023e261eaa7e7c14588',
'darwin.x86_64':
'3c89db4edcab7cf1c27bff178882e0f6f27f7afdf54e859fa041fca10febe4c6',
'darwin.aarch64':
@ -126,6 +130,12 @@ function getPlatformArch() {
shellcheck: 'linux.x86_64',
};
}
if (platform === 'linux' && arch === 'arm64') {
return {
actionlint: 'linux_arm64',
shellcheck: 'linux.aarch64',
};
}
if (platform === 'darwin' && arch === 'x64') {
return {
actionlint: 'darwin_amd64',