From ecbabe4d908f8ec4f50efed3169a1bacc4696e6c Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Tue, 7 Nov 2023 10:24:01 -0500 Subject: [PATCH] append .exe to cached tool name on windows Signed-off-by: Will Murphy --- dist/attachReleaseAssets/index.js | 2 +- dist/downloadSyft/index.js | 2 +- dist/runSyftAction/index.js | 2 +- src/github/SyftGithubAction.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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);