mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 06:10:19 +00:00
Don't fail post start-proxy action if killing the proxy process fails
Otherwise logs won't get uploaded as artifact, even in debug mode
This commit is contained in:
@@ -22,7 +22,11 @@ async function runWrapper() {
|
||||
// Kill the running proxy
|
||||
const pid = core.getState("proxy-process-pid");
|
||||
if (pid) {
|
||||
process.kill(Number(pid));
|
||||
try {
|
||||
process.kill(Number(pid));
|
||||
} catch (error) {
|
||||
logger.error(`Failed to kill proxy process: ${getErrorMessage(error)}`);
|
||||
}
|
||||
}
|
||||
|
||||
const config = await configUtils.getConfig(
|
||||
|
||||
Reference in New Issue
Block a user