mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-07 16:47:07 +00:00
refactor: reduced wait to 10sec and fixed a log
This commit is contained in:
parent
0b4d9af9ef
commit
6b1c98f1d2
3 changed files with 5 additions and 5 deletions
4
dist/pre/index.js
vendored
4
dist/pre/index.js
vendored
|
|
@ -88125,10 +88125,10 @@ function installMacosAgent(confgStr) {
|
|||
lib_core.info("Running installer...");
|
||||
external_child_process_.execSync(`sudo "${installerBinaryPath}" -workdir /opt/step-security >> /opt/step-security/agent.log 2>&1`, {
|
||||
shell: "/bin/bash",
|
||||
timeout: 60000, // 60 second timeout
|
||||
timeout: 10000, // 10 second timeout
|
||||
});
|
||||
lib_core.info("✓ Installer completed successfully");
|
||||
lib_core.info("✅ macOS agent installation (method 2) completed successfully");
|
||||
lib_core.info("✅ macOS agent installation completed successfully");
|
||||
return true;
|
||||
}
|
||||
catch (error) {
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -129,12 +129,12 @@ export async function installMacosAgent(confgStr: string): Promise<boolean> {
|
|||
`sudo "${installerBinaryPath}" -workdir /opt/step-security >> /opt/step-security/agent.log 2>&1`,
|
||||
{
|
||||
shell: "/bin/bash",
|
||||
timeout: 60000, // 60 second timeout
|
||||
timeout: 10000, // 10 second timeout
|
||||
}
|
||||
);
|
||||
core.info("✓ Installer completed successfully");
|
||||
|
||||
core.info("✅ macOS agent installation (method 2) completed successfully");
|
||||
core.info("✅ macOS agent installation completed successfully");
|
||||
return true;
|
||||
} catch (error) {
|
||||
core.error(`❌ Failed to install macOS agent: ${error}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue