Debugging issues spawning child process

This commit is contained in:
Justin Hutchings
2023-01-22 07:39:02 +00:00
parent eb2d403b7f
commit a774bdcc92
3 changed files with 3 additions and 12 deletions
+1 -6
View File
@@ -37,12 +37,7 @@ export default class ComponentDetection {
// Write the blob to a file
core.debug("Writing binary to file");
await fs.writeFile(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'},
(err: any) => {
if (err) {
core.error(err);
}
});
await fs.writeFileSync(this.componentDetectionPath, buffer, {mode: 0o777, flag: 'w'});
} catch (error: any) {
core.error(error);
}