refactor: reduced wait to 10sec and fixed a log

This commit is contained in:
Jatin 2026-01-29 17:40:26 +05:30
commit 6b1c98f1d2
No known key found for this signature in database
GPG key ID: 0C17698EE30CA603
3 changed files with 5 additions and 5 deletions

4
dist/pre/index.js vendored
View file

@ -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) {

File diff suppressed because one or more lines are too long

View file

@ -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}`);