@@ -10371,7 +10371,11 @@ function copyFile(srcFile, destFile, force) {
1037110371
1037210372var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1037310373 if (k2 === undefined) k2 = k;
10374- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
10374+ var desc = Object.getOwnPropertyDescriptor(m, k);
10375+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10376+ desc = { enumerable: true, get: function() { return m[k]; } };
10377+ }
10378+ Object.defineProperty(o, k2, desc);
1037510379}) : (function(o, m, k, k2) {
1037610380 if (k2 === undefined) k2 = k;
1037710381 o[k2] = m[k];
@@ -10384,7 +10388,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1038410388var __importStar = (this && this.__importStar) || function (mod) {
1038510389 if (mod && mod.__esModule) return mod;
1038610390 var result = {};
10387- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
10391+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1038810392 __setModuleDefault(result, mod);
1038910393 return result;
1039010394};
@@ -10414,11 +10418,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
1041410418 let file;
1041510419 for (const candidate of candidates) {
1041610420 const version = candidate.version;
10417- core_1.debug(`check ${version} satisfies ${versionSpec}`);
10421+ (0, core_1.debug) (`check ${version} satisfies ${versionSpec}`);
1041810422 if (semver.satisfies(version, versionSpec) &&
1041910423 (!stable || candidate.stable === stable)) {
1042010424 file = candidate.files.find(item => {
10421- core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
10425+ (0, core_1.debug) (`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
1042210426 let chk = item.arch === archFilter && item.platform === platFilter;
1042310427 if (chk && item.platform_version) {
1042410428 const osVersion = module.exports._getOsVersion();
@@ -10432,7 +10436,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
1043210436 return chk;
1043310437 });
1043410438 if (file) {
10435- core_1.debug(`matched ${candidate.version}`);
10439+ (0, core_1.debug) (`matched ${candidate.version}`);
1043610440 match = candidate;
1043710441 break;
1043810442 }
@@ -10470,10 +10474,7 @@ function _getOsVersion() {
1047010474 if (parts.length === 2 &&
1047110475 (parts[0].trim() === 'VERSION_ID' ||
1047210476 parts[0].trim() === 'DISTRIB_RELEASE')) {
10473- version = parts[1]
10474- .trim()
10475- .replace(/^"/, '')
10476- .replace(/"$/, '');
10477+ version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
1047710478 break;
1047810479 }
1047910480 }
@@ -10506,7 +10507,11 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
1050610507
1050710508var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1050810509 if (k2 === undefined) k2 = k;
10509- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
10510+ var desc = Object.getOwnPropertyDescriptor(m, k);
10511+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10512+ desc = { enumerable: true, get: function() { return m[k]; } };
10513+ }
10514+ Object.defineProperty(o, k2, desc);
1051010515}) : (function(o, m, k, k2) {
1051110516 if (k2 === undefined) k2 = k;
1051210517 o[k2] = m[k];
@@ -10519,7 +10524,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1051910524var __importStar = (this && this.__importStar) || function (mod) {
1052010525 if (mod && mod.__esModule) return mod;
1052110526 var result = {};
10522- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
10527+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1052310528 __setModuleDefault(result, mod);
1052410529 return result;
1052510530};
@@ -10596,7 +10601,11 @@ exports.RetryHelper = RetryHelper;
1059610601
1059710602var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1059810603 if (k2 === undefined) k2 = k;
10599- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
10604+ var desc = Object.getOwnPropertyDescriptor(m, k);
10605+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10606+ desc = { enumerable: true, get: function() { return m[k]; } };
10607+ }
10608+ Object.defineProperty(o, k2, desc);
1060010609}) : (function(o, m, k, k2) {
1060110610 if (k2 === undefined) k2 = k;
1060210611 o[k2] = m[k];
@@ -10609,7 +10618,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1060910618var __importStar = (this && this.__importStar) || function (mod) {
1061010619 if (mod && mod.__esModule) return mod;
1061110620 var result = {};
10612- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
10621+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1061310622 __setModuleDefault(result, mod);
1061410623 return result;
1061510624};
@@ -10622,13 +10631,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1062210631 step((generator = generator.apply(thisArg, _arguments || [])).next());
1062310632 });
1062410633};
10625- var __importDefault = (this && this.__importDefault) || function (mod) {
10626- return (mod && mod.__esModule) ? mod : { "default": mod };
10627- };
1062810634Object.defineProperty(exports, "__esModule", ({ value: true }));
1062910635exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
1063010636const core = __importStar(__nccwpck_require__(7484));
1063110637const io = __importStar(__nccwpck_require__(4994));
10638+ const crypto = __importStar(__nccwpck_require__(6982));
1063210639const fs = __importStar(__nccwpck_require__(9896));
1063310640const mm = __importStar(__nccwpck_require__(8036));
1063410641const os = __importStar(__nccwpck_require__(857));
@@ -10638,7 +10645,6 @@ const semver = __importStar(__nccwpck_require__(6193));
1063810645const stream = __importStar(__nccwpck_require__(2203));
1063910646const util = __importStar(__nccwpck_require__(9023));
1064010647const assert_1 = __nccwpck_require__(2613);
10641- const v4_1 = __importDefault(__nccwpck_require__(1350));
1064210648const exec_1 = __nccwpck_require__(5236);
1064310649const retry_helper_1 = __nccwpck_require__(7380);
1064410650class HTTPError extends Error {
@@ -10663,7 +10669,7 @@ const userAgent = 'actions/tool-cache';
1066310669 */
1066410670function downloadTool(url, dest, auth, headers) {
1066510671 return __awaiter(this, void 0, void 0, function* () {
10666- dest = dest || path.join(_getTempDirectory(), v4_1.default ());
10672+ dest = dest || path.join(_getTempDirectory(), crypto.randomUUID ());
1066710673 yield io.mkdirP(path.dirname(dest));
1066810674 core.debug(`Downloading ${url}`);
1066910675 core.debug(`Destination ${dest}`);
@@ -10752,8 +10758,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
1075210758 */
1075310759function extract7z(file, dest, _7zPath) {
1075410760 return __awaiter(this, void 0, void 0, function* () {
10755- assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
10756- assert_1.ok(file, 'parameter "file" is required');
10761+ (0, assert_1.ok) (IS_WINDOWS, 'extract7z() not supported on current OS');
10762+ (0, assert_1.ok) (file, 'parameter "file" is required');
1075710763 dest = yield _createExtractFolder(dest);
1075810764 const originalCwd = process.cwd();
1075910765 process.chdir(dest);
@@ -10770,7 +10776,7 @@ function extract7z(file, dest, _7zPath) {
1077010776 const options = {
1077110777 silent: true
1077210778 };
10773- yield exec_1.exec(`"${_7zPath}"`, args, options);
10779+ yield (0, exec_1.exec) (`"${_7zPath}"`, args, options);
1077410780 }
1077510781 finally {
1077610782 process.chdir(originalCwd);
@@ -10799,7 +10805,7 @@ function extract7z(file, dest, _7zPath) {
1079910805 };
1080010806 try {
1080110807 const powershellPath = yield io.which('powershell', true);
10802- yield exec_1.exec(`"${powershellPath}"`, args, options);
10808+ yield (0, exec_1.exec) (`"${powershellPath}"`, args, options);
1080310809 }
1080410810 finally {
1080510811 process.chdir(originalCwd);
@@ -10827,7 +10833,7 @@ function extractTar(file, dest, flags = 'xz') {
1082710833 // Determine whether GNU tar
1082810834 core.debug('Checking tar --version');
1082910835 let versionOutput = '';
10830- yield exec_1.exec('tar --version', [], {
10836+ yield (0, exec_1.exec) ('tar --version', [], {
1083110837 ignoreReturnCode: true,
1083210838 silent: true,
1083310839 listeners: {
@@ -10863,7 +10869,7 @@ function extractTar(file, dest, flags = 'xz') {
1086310869 args.push('--overwrite');
1086410870 }
1086510871 args.push('-C', destArg, '-f', fileArg);
10866- yield exec_1.exec(`tar`, args);
10872+ yield (0, exec_1.exec) (`tar`, args);
1086710873 return dest;
1086810874 });
1086910875}
@@ -10878,8 +10884,8 @@ exports.extractTar = extractTar;
1087810884 */
1087910885function extractXar(file, dest, flags = []) {
1088010886 return __awaiter(this, void 0, void 0, function* () {
10881- assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
10882- assert_1.ok(file, 'parameter "file" is required');
10887+ (0, assert_1.ok) (IS_MAC, 'extractXar() not supported on current OS');
10888+ (0, assert_1.ok) (file, 'parameter "file" is required');
1088310889 dest = yield _createExtractFolder(dest);
1088410890 let args;
1088510891 if (flags instanceof Array) {
@@ -10893,7 +10899,7 @@ function extractXar(file, dest, flags = []) {
1089310899 args.push('-v');
1089410900 }
1089510901 const xarPath = yield io.which('xar', true);
10896- yield exec_1.exec(`"${xarPath}"`, _unique(args));
10902+ yield (0, exec_1.exec) (`"${xarPath}"`, _unique(args));
1089710903 return dest;
1089810904 });
1089910905}
@@ -10947,7 +10953,7 @@ function extractZipWin(file, dest) {
1094710953 pwshCommand
1094810954 ];
1094910955 core.debug(`Using pwsh at path: ${pwshPath}`);
10950- yield exec_1.exec(`"${pwshPath}"`, args);
10956+ yield (0, exec_1.exec) (`"${pwshPath}"`, args);
1095110957 }
1095210958 else {
1095310959 const powershellCommand = [
@@ -10968,7 +10974,7 @@ function extractZipWin(file, dest) {
1096810974 ];
1096910975 const powershellPath = yield io.which('powershell', true);
1097010976 core.debug(`Using powershell at path: ${powershellPath}`);
10971- yield exec_1.exec(`"${powershellPath}"`, args);
10977+ yield (0, exec_1.exec) (`"${powershellPath}"`, args);
1097210978 }
1097310979 });
1097410980}
@@ -10980,7 +10986,7 @@ function extractZipNix(file, dest) {
1098010986 args.unshift('-q');
1098110987 }
1098210988 args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
10983- yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
10989+ yield (0, exec_1.exec) (`"${unzipPath}"`, args, { cwd: dest });
1098410990 });
1098510991}
1098610992/**
@@ -11157,7 +11163,7 @@ function _createExtractFolder(dest) {
1115711163 return __awaiter(this, void 0, void 0, function* () {
1115811164 if (!dest) {
1115911165 // create a temp dir
11160- dest = path.join(_getTempDirectory(), v4_1.default ());
11166+ dest = path.join(_getTempDirectory(), crypto.randomUUID ());
1116111167 }
1116211168 yield io.mkdirP(dest);
1116311169 return dest;
@@ -11230,15 +11236,15 @@ exports.evaluateVersions = evaluateVersions;
1123011236 */
1123111237function _getCacheDirectory() {
1123211238 const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
11233- assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
11239+ (0, assert_1.ok) (cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
1123411240 return cacheDirectory;
1123511241}
1123611242/**
1123711243 * Gets RUNNER_TEMP
1123811244 */
1123911245function _getTempDirectory() {
1124011246 const tempDirectory = process.env['RUNNER_TEMP'] || '';
11241- assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
11247+ (0, assert_1.ok) (tempDirectory, 'Expected RUNNER_TEMP to be defined');
1124211248 return tempDirectory;
1124311249}
1124411250/**
@@ -12909,90 +12915,6 @@ function coerce (version, options) {
1290912915}
1291012916
1291112917
12912- /***/ }),
12913-
12914- /***/ 2727:
12915- /***/ ((module) => {
12916-
12917- /**
12918- * Convert array of 16 byte values to UUID string format of the form:
12919- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
12920- */
12921- var byteToHex = [];
12922- for (var i = 0; i < 256; ++i) {
12923- byteToHex[i] = (i + 0x100).toString(16).substr(1);
12924- }
12925-
12926- function bytesToUuid(buf, offset) {
12927- var i = offset || 0;
12928- var bth = byteToHex;
12929- // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
12930- return ([
12931- bth[buf[i++]], bth[buf[i++]],
12932- bth[buf[i++]], bth[buf[i++]], '-',
12933- bth[buf[i++]], bth[buf[i++]], '-',
12934- bth[buf[i++]], bth[buf[i++]], '-',
12935- bth[buf[i++]], bth[buf[i++]], '-',
12936- bth[buf[i++]], bth[buf[i++]],
12937- bth[buf[i++]], bth[buf[i++]],
12938- bth[buf[i++]], bth[buf[i++]]
12939- ]).join('');
12940- }
12941-
12942- module.exports = bytesToUuid;
12943-
12944-
12945- /***/ }),
12946-
12947- /***/ 9879:
12948- /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
12949-
12950- // Unique ID creation requires a high quality random # generator. In node.js
12951- // this is pretty straight-forward - we use the crypto API.
12952-
12953- var crypto = __nccwpck_require__(6982);
12954-
12955- module.exports = function nodeRNG() {
12956- return crypto.randomBytes(16);
12957- };
12958-
12959-
12960- /***/ }),
12961-
12962- /***/ 1350:
12963- /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
12964-
12965- var rng = __nccwpck_require__(9879);
12966- var bytesToUuid = __nccwpck_require__(2727);
12967-
12968- function v4(options, buf, offset) {
12969- var i = buf && offset || 0;
12970-
12971- if (typeof(options) == 'string') {
12972- buf = options === 'binary' ? new Array(16) : null;
12973- options = null;
12974- }
12975- options = options || {};
12976-
12977- var rnds = options.random || (options.rng || rng)();
12978-
12979- // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
12980- rnds[6] = (rnds[6] & 0x0f) | 0x40;
12981- rnds[8] = (rnds[8] & 0x3f) | 0x80;
12982-
12983- // Copy bytes to buffer, if provided
12984- if (buf) {
12985- for (var ii = 0; ii < 16; ++ii) {
12986- buf[i + ii] = rnds[ii];
12987- }
12988- }
12989-
12990- return buf || bytesToUuid(rnds);
12991- }
12992-
12993- module.exports = v4;
12994-
12995-
1299612918/***/ }),
1299712919
1299812920/***/ 8110:
0 commit comments