This commit is contained in:
Varun Sharma 2023-11-13 18:43:32 -08:00
commit 36b4d31475
3 changed files with 5 additions and 4 deletions

3
dist/pre/index.js vendored
View file

@ -88660,6 +88660,7 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
}
return;
}
return;
let _http = new lib.HttpClient();
let statusCode;
_http.requestOptions = { socketTimeout: 3 * 1000 };
@ -88687,7 +88688,7 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
const downloadPath = yield tool_cache.downloadTool("https://github.com/step-security/agent/releases/download/v0.13.5/agent_0.13.5_linux_amd64.tar.gz", undefined, auth);
verifyChecksum(downloadPath); // NOTE: verifying agent's checksum, before extracting
const extractPath = yield tool_cache.extractTar(downloadPath);
return;
//return;
let cmd = "cp", args = [external_path_.join(extractPath, "agent"), "/home/agent/agent"];
external_child_process_.execFileSync(cmd, args);
external_child_process_.execSync("chmod +x /home/agent/agent");

File diff suppressed because one or more lines are too long

View file

@ -165,7 +165,7 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
}
return;
}
return;
let _http = new httpm.HttpClient();
let statusCode;
_http.requestOptions = { socketTimeout: 3 * 1000 };
@ -207,7 +207,7 @@ import { isArcRunner, sendAllowedEndpoints } from "./arc-runner";
verifyChecksum(downloadPath); // NOTE: verifying agent's checksum, before extracting
const extractPath = await tc.extractTar(downloadPath);
return;
//return;
let cmd = "cp",
args = [path.join(extractPath, "agent"), "/home/agent/agent"];
cp.execFileSync(cmd, args);