update agent

This commit is contained in:
Varun Sharma 2025-05-14 00:00:00 -07:00
commit 9abfa72990
4 changed files with 11 additions and 11 deletions

10
dist/pre/index.js vendored
View file

@ -88007,11 +88007,11 @@ var external_crypto_ = __nccwpck_require__(6417);
const CHECKSUMS = {
tls: {
amd64: "8fc633c62cf1131bd14c865a2d2f20ed53079e5a5f92fa67b1151550c4530edb",
arm64: "1f84c24fc0caecab1765fabb575f7eccb1ee75601163258435cdb253725ae0a4",
amd64: "fcfcba43b5a7e1e4d5f8959e502c67883b22d6ab7a608c70a07d5a2454bce6fd",
arm64: "17a392ff3715d88bc6e9f55895ea9f65b57004a9ae39f520e750ae27c50e0f0c",
},
non_tls: {
amd64: "15f639d0e58cf687e28a26fb48fc1e17fab81baceaa7d2d50ca8c465d98d13cd", // v0.14.1
amd64: "336093af8ebe969567b66fd035af3bd4f7e1c723ce680d6b4b5b2a1f79bc329e", // v0.14.2
},
};
function verifyChecksum(downloadPath, isTLS, variant) {
@ -88061,14 +88061,14 @@ function installAgent(isTLS, configStr) {
encoding: "utf8",
});
if (isTLS) {
downloadPath = yield tool_cache.downloadTool(`https://packages.stepsecurity.io/github-hosted/harden-runner_1.6.5_linux_${variant}.tar.gz`);
downloadPath = yield tool_cache.downloadTool(`https://packages.stepsecurity.io/github-hosted/harden-runner_1.6.6_linux_${variant}.tar.gz`);
}
else {
if (variant === "arm64") {
console.log(ARM64_RUNNER_MESSAGE);
return false;
}
downloadPath = yield tool_cache.downloadTool("https://github.com/step-security/agent/releases/download/v0.14.1/agent_0.14.1_linux_amd64.tar.gz", undefined, auth);
downloadPath = yield tool_cache.downloadTool("https://github.com/step-security/agent/releases/download/v0.14.1/agent_0.14.2_linux_amd64.tar.gz", undefined, auth);
}
verifyChecksum(downloadPath, isTLS, variant);
const extractPath = yield tool_cache.extractTar(downloadPath);

File diff suppressed because one or more lines are too long

View file

@ -4,11 +4,11 @@ import * as fs from "fs";
const CHECKSUMS = {
tls: {
amd64: "8fc633c62cf1131bd14c865a2d2f20ed53079e5a5f92fa67b1151550c4530edb", // v1.6.5
arm64: "1f84c24fc0caecab1765fabb575f7eccb1ee75601163258435cdb253725ae0a4",
amd64: "fcfcba43b5a7e1e4d5f8959e502c67883b22d6ab7a608c70a07d5a2454bce6fd", // v1.6.6
arm64: "17a392ff3715d88bc6e9f55895ea9f65b57004a9ae39f520e750ae27c50e0f0c",
},
non_tls: {
amd64: "15f639d0e58cf687e28a26fb48fc1e17fab81baceaa7d2d50ca8c465d98d13cd", // v0.14.1
amd64: "336093af8ebe969567b66fd035af3bd4f7e1c723ce680d6b4b5b2a1f79bc329e", // v0.14.2
},
};

View file

@ -25,7 +25,7 @@ export async function installAgent(
if (isTLS) {
downloadPath = await tc.downloadTool(
`https://packages.stepsecurity.io/github-hosted/harden-runner_1.6.5_linux_${variant}.tar.gz`
`https://packages.stepsecurity.io/github-hosted/harden-runner_1.6.6_linux_${variant}.tar.gz`
);
} else {
if (variant === "arm64") {
@ -33,7 +33,7 @@ export async function installAgent(
return false;
}
downloadPath = await tc.downloadTool(
"https://github.com/step-security/agent/releases/download/v0.14.1/agent_0.14.1_linux_amd64.tar.gz",
"https://github.com/step-security/agent/releases/download/v0.14.1/agent_0.14.2_linux_amd64.tar.gz",
undefined,
auth
);