diff --git a/dist/attachReleaseAssets/index.js b/dist/attachReleaseAssets/index.js index 186e0c7a..d47c595a 100644 --- a/dist/attachReleaseAssets/index.js +++ b/dist/attachReleaseAssets/index.js @@ -24124,7 +24124,7 @@ exports.downloadSyft = downloadSyft; */ function getSyftCommand() { return __awaiter(this, void 0, void 0, function* () { - const name = exports.SYFT_BINARY_NAME; + const name = exports.SYFT_BINARY_NAME + (process.platform == "win32" ? ".exe" : ""); const version = exports.SYFT_VERSION; const sourceSyft = yield (0, SyftDownloader_1.downloadSyftFromZip)(version); if (sourceSyft) { diff --git a/dist/downloadSyft/index.js b/dist/downloadSyft/index.js index 86db05d9..8aff83f9 100644 --- a/dist/downloadSyft/index.js +++ b/dist/downloadSyft/index.js @@ -24172,7 +24172,7 @@ exports.downloadSyft = downloadSyft; */ function getSyftCommand() { return __awaiter(this, void 0, void 0, function* () { - const name = exports.SYFT_BINARY_NAME; + const name = exports.SYFT_BINARY_NAME + (process.platform == "win32" ? ".exe" : ""); const version = exports.SYFT_VERSION; const sourceSyft = yield (0, SyftDownloader_1.downloadSyftFromZip)(version); if (sourceSyft) { diff --git a/dist/runSyftAction/index.js b/dist/runSyftAction/index.js index 4bedf1ba..f5d840ff 100644 --- a/dist/runSyftAction/index.js +++ b/dist/runSyftAction/index.js @@ -24124,7 +24124,7 @@ exports.downloadSyft = downloadSyft; */ function getSyftCommand() { return __awaiter(this, void 0, void 0, function* () { - const name = exports.SYFT_BINARY_NAME; + const name = exports.SYFT_BINARY_NAME + (process.platform == "win32" ? ".exe" : ""); const version = exports.SYFT_VERSION; const sourceSyft = yield (0, SyftDownloader_1.downloadSyftFromZip)(version); if (sourceSyft) { diff --git a/src/github/SyftGithubAction.ts b/src/github/SyftGithubAction.ts index f88c0eb2..60e15daf 100644 --- a/src/github/SyftGithubAction.ts +++ b/src/github/SyftGithubAction.ts @@ -216,7 +216,7 @@ export async function downloadSyft(): Promise { * Gets the Syft command to run via exec */ export async function getSyftCommand(): Promise { - const name = SYFT_BINARY_NAME; + const name = SYFT_BINARY_NAME + (process.platform == "win32" ? ".exe" : ""); const version = SYFT_VERSION; const sourceSyft = await downloadSyftFromZip(version);