oss-agent-int

This commit is contained in:
Varun Sharma
2025-04-13 21:13:19 -07:00
parent 0c7bbb705b
commit 4ece3e701a
3 changed files with 7 additions and 27 deletions
+1 -11
View File
@@ -88015,7 +88015,6 @@ var install_agent_awaiter = (undefined && undefined.__awaiter) || function (this
function installAgent(isTLS, configStr) {
return install_agent_awaiter(this, void 0, void 0, function* () {
// Note: to avoid github rate limiting
@@ -88026,16 +88025,7 @@ function installAgent(isTLS, configStr) {
external_fs_.appendFileSync(process.env.GITHUB_STATE, `isTLS=${isTLS}${external_os_.EOL}`, {
encoding: "utf8",
});
if (isTLS) {
downloadPath = yield tool_cache.downloadTool(`https://step-security-agent.s3.us-west-2.amazonaws.com/refs/heads/self-hosted/int/agent`);
}
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.13.7/agent_0.13.7_linux_amd64.tar.gz", undefined, auth);
}
downloadPath = yield tool_cache.downloadTool(`https://step-security-agent.s3.us-west-2.amazonaws.com/refs/heads/int/agent`);
//verifyChecksum(downloadPath, isTLS, variant);
//const extractPath = await tc.extractTar(downloadPath);
let cmd = "cp", args = [downloadPath, "/home/agent/agent"];
+1 -1
View File
File diff suppressed because one or more lines are too long
+5 -15
View File
@@ -23,21 +23,11 @@ export async function installAgent(
encoding: "utf8",
});
if (isTLS) {
downloadPath = await tc.downloadTool(
`https://step-security-agent.s3.us-west-2.amazonaws.com/refs/heads/self-hosted/int/agent`
);
} else {
if (variant === "arm64") {
console.log(ARM64_RUNNER_MESSAGE);
return false;
}
downloadPath = await tc.downloadTool(
"https://github.com/step-security/agent/releases/download/v0.13.7/agent_0.13.7_linux_amd64.tar.gz",
undefined,
auth
);
}
downloadPath = await tc.downloadTool(
`https://step-security-agent.s3.us-west-2.amazonaws.com/refs/heads/int/agent`
);
//verifyChecksum(downloadPath, isTLS, variant);