Fix actions when core on https

This commit is contained in:
komodo
2025-03-07 05:02:41 -05:00
committed by mbecker20
parent a118696d54
commit 2f9cf82cee

View File

@@ -120,11 +120,22 @@ impl Resolve<ExecuteArgs> for RunAction {
format!("Failed to write action file to {path:?}")
})?;
let CoreConfig { ssl_enabled, .. } = core_config();
let https_cert_flag = if *ssl_enabled {
" --unsafely-ignore-certificate-errors=localhost"
} else {
""
};
let mut res = run_komodo_command(
// Keep this stage name as is, the UI will find the latest update log by matching the stage name
"Execute Action",
None,
format!("deno run --allow-all {}", path.display()),
format!(
"deno run --allow-all{https_cert_flag} {}",
path.display()
),
)
.await;