Skip to content

Commit 0d7fdc0

Browse files
committed
use agent from prod-releases & resolved comments
1 parent 25b1b6b commit 0d7fdc0

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

dist/pre/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85545,9 +85545,9 @@ const CHECKSUMS = {
8554585545
non_tls: {
8554685546
amd64: "23715f2485c16e2a2ad116abf0fe8443788c62e4f5f224c5858b0b41b591fc89", // v0.14.3
8554785547
},
85548-
darwin: "eefb162810c378653c16e122e024314a2e47592dc98b295433b26ad1a4f28590",
85548+
darwin: "c15dea4604bb3f15c7b45bf74658a154827d3c1285cb9b13f21d4a2ad2b9d9ce",
8554985549
windows: {
85550-
amd64: "9e4fde66331be3261ae6ff954e531e94335b5774ac7e105f0126b391ee1c6d66", // v1.0.0-int
85550+
amd64: "e98f8b9cf9ecf6566f1e16a470fbe4aef01610a644fd8203a1bab3ff142186c8", // v1.0.0
8555185551
},
8555285552
};
8555385553
// verifyChecksum returns true if checksum is valid
@@ -85655,7 +85655,7 @@ function installMacosAgent(configStr) {
8565585655
external_fs_.writeFileSync("/opt/step-security/agent.json", configStr);
8565685656
lib_core.info("✓ Successfully created agent.json at /opt/step-security/agent.json");
8565785657
// Download installer package
85658-
const downloadUrl = "https://github.com/step-security/agent-int-releases/releases/download/v0.0.2-mac/macos-installer-0.0.2.tar.gz";
85658+
const downloadUrl = "https://github.com/step-security/agent-releases/releases/download/v0.0.3-mac/macos-installer-0.0.3.tar.gz";
8565985659
lib_core.info(`Downloading macOS installer.. : ${downloadUrl}`);
8566085660
const downloadPath = yield tool_cache.downloadTool(downloadUrl, undefined, auth);
8566185661
lib_core.info(`✓ Successfully downloaded installer to: ${downloadPath}`);
@@ -85670,10 +85670,10 @@ function installMacosAgent(configStr) {
8567085670
lib_core.info(`✓ Successfully extracted installer to: ${extractPath}`);
8567185671
// Copy Installer binary to /opt/step-security
8567285672
const installerSourcePath = external_path_.join(extractPath, "Installer");
85673+
const installerBinaryPath = "/opt/step-security/Installer";
8567385674
lib_core.info(`Copying Installer from ${installerSourcePath} to /opt/step-security...`);
85674-
external_child_process_.execSync(`cp "${installerSourcePath}" /opt/step-security/`);
85675+
external_child_process_.execFileSync("cp", [installerSourcePath, installerBinaryPath]);
8567585676
lib_core.info("✓ Successfully copied Installer to /opt/step-security");
85676-
const installerBinaryPath = "/opt/step-security/Installer";
8567785677
// Verify installer binary exists
8567885678
if (!external_fs_.existsSync(installerBinaryPath)) {
8567985679
throw new Error("Installer binary not found at /opt/step-security/Installer");
@@ -85720,7 +85720,7 @@ function installWindowsAgent(configStr) {
8572085720
encoding: "utf8",
8572185721
});
8572285722
const agentExePath = external_path_.join(agentDir, "agent.exe");
85723-
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-releases/releases/download/v1.0.0-int/harden-runner-agent-windows_int_windows_amd64.tar.gz`, undefined, auth);
85723+
const downloadPath = yield tool_cache.downloadTool(`https://github.com/step-security/agent-releases/releases/download/v1.0.0-win/harden-runner-agent-windows_1.0.0_windows_amd64.tar.gz`, undefined, auth);
8572485724
// validate the checksum
8572585725
if (!verifyChecksum(downloadPath, false, variant, process.platform)) {
8572685726
return false;

dist/pre/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/checksum.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const CHECKSUMS = {
1010
non_tls: {
1111
amd64: "23715f2485c16e2a2ad116abf0fe8443788c62e4f5f224c5858b0b41b591fc89", // v0.14.3
1212
},
13-
darwin: "eefb162810c378653c16e122e024314a2e47592dc98b295433b26ad1a4f28590", // v0.0.2
13+
darwin: "c15dea4604bb3f15c7b45bf74658a154827d3c1285cb9b13f21d4a2ad2b9d9ce", // v0.0.3
1414
windows: {
15-
amd64: "9e4fde66331be3261ae6ff954e531e94335b5774ac7e105f0126b391ee1c6d66", // v1.0.0-int
15+
amd64: "e98f8b9cf9ecf6566f1e16a470fbe4aef01610a644fd8203a1bab3ff142186c8", // v1.0.0
1616
},
1717
};
1818

src/install-agent.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function installMacosAgent(configStr: string): Promise<boolean> {
8989

9090
// Download installer package
9191
const downloadUrl =
92-
"https://github.com/step-security/agent-int-releases/releases/download/v0.0.2-mac/macos-installer-0.0.2.tar.gz";
92+
"https://github.com/step-security/agent-releases/releases/download/v0.0.3-mac/macos-installer-0.0.3.tar.gz";
9393
core.info(`Downloading macOS installer.. : ${downloadUrl}`);
9494
const downloadPath = await tc.downloadTool(downloadUrl, undefined, auth);
9595
core.info(`✓ Successfully downloaded installer to: ${downloadPath}`);
@@ -107,13 +107,14 @@ export async function installMacosAgent(configStr: string): Promise<boolean> {
107107

108108
// Copy Installer binary to /opt/step-security
109109
const installerSourcePath = path.join(extractPath, "Installer");
110+
const installerBinaryPath = "/opt/step-security/Installer";
111+
110112
core.info(
111113
`Copying Installer from ${installerSourcePath} to /opt/step-security...`
112114
);
113-
cp.execSync(`cp "${installerSourcePath}" /opt/step-security/`);
115+
cp.execFileSync("cp", [installerSourcePath, installerBinaryPath]);
114116
core.info("✓ Successfully copied Installer to /opt/step-security");
115117

116-
const installerBinaryPath = "/opt/step-security/Installer";
117118

118119
// Verify installer binary exists
119120
if (!fs.existsSync(installerBinaryPath)) {
@@ -171,7 +172,7 @@ export async function installWindowsAgent(configStr: string): Promise<boolean> {
171172
const agentExePath = path.join(agentDir, "agent.exe");
172173

173174
const downloadPath = await tc.downloadTool(
174-
`https://github.com/step-security/agent-releases/releases/download/v1.0.0-int/harden-runner-agent-windows_int_windows_amd64.tar.gz`,
175+
`https://github.com/step-security/agent-releases/releases/download/v1.0.0-win/harden-runner-agent-windows_1.0.0_windows_amd64.tar.gz`,
175176
undefined,
176177
auth
177178
);

0 commit comments

Comments
 (0)