diff --git a/dist/index.js b/dist/index.js index c72c8fa..a2693ce 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2868,6 +2868,7 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const os = __importStar(__webpack_require__(87)); const util = __importStar(__webpack_require__(669)); +const fs = __importStar(__webpack_require__(747)); const toolCache = __importStar(__webpack_require__(533)); const core = __importStar(__webpack_require__(470)); function downloadUrl(version) { @@ -2888,6 +2889,7 @@ function run() { let cachedToolpath = toolCache.find(binaryName, version); if (!cachedToolpath) { const downloadPath = yield toolCache.downloadTool(downloadUrl(version)); + fs.chmodSync(downloadPath, '0755'); cachedToolpath = yield toolCache.cacheFile(downloadPath, binaryName, binaryName, version); } core.addPath(cachedToolpath); diff --git a/src/index.ts b/src/index.ts index fc7486d..bb96930 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import * as os from 'os'; import * as util from 'util'; +import * as fs from 'fs'; import * as toolCache from '@actions/tool-cache'; import * as core from '@actions/core'; @@ -26,6 +27,7 @@ async function run() { let cachedToolpath = toolCache.find(binaryName, version); if (!cachedToolpath) { const downloadPath = await toolCache.downloadTool(downloadUrl(version)); + fs.chmodSync(downloadPath, '0755'); cachedToolpath = await toolCache.cacheFile(downloadPath, binaryName, binaryName, version) }