@@ -10371,7 +10371,11 @@ function copyFile(srcFile, destFile, force) {
10371
10371
10372
10372
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10373
10373
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);
10375
10379
}) : (function(o, m, k, k2) {
10376
10380
if (k2 === undefined) k2 = k;
10377
10381
o[k2] = m[k];
@@ -10384,7 +10388,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
10384
10388
var __importStar = (this && this.__importStar) || function (mod) {
10385
10389
if (mod && mod.__esModule) return mod;
10386
10390
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);
10388
10392
__setModuleDefault(result, mod);
10389
10393
return result;
10390
10394
};
@@ -10414,11 +10418,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
10414
10418
let file;
10415
10419
for (const candidate of candidates) {
10416
10420
const version = candidate.version;
10417
- core_1.debug(`check ${version} satisfies ${versionSpec}`);
10421
+ (0, core_1.debug) (`check ${version} satisfies ${versionSpec}`);
10418
10422
if (semver.satisfies(version, versionSpec) &&
10419
10423
(!stable || candidate.stable === stable)) {
10420
10424
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}`);
10422
10426
let chk = item.arch === archFilter && item.platform === platFilter;
10423
10427
if (chk && item.platform_version) {
10424
10428
const osVersion = module.exports._getOsVersion();
@@ -10432,7 +10436,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
10432
10436
return chk;
10433
10437
});
10434
10438
if (file) {
10435
- core_1.debug(`matched ${candidate.version}`);
10439
+ (0, core_1.debug) (`matched ${candidate.version}`);
10436
10440
match = candidate;
10437
10441
break;
10438
10442
}
@@ -10470,10 +10474,7 @@ function _getOsVersion() {
10470
10474
if (parts.length === 2 &&
10471
10475
(parts[0].trim() === 'VERSION_ID' ||
10472
10476
parts[0].trim() === 'DISTRIB_RELEASE')) {
10473
- version = parts[1]
10474
- .trim()
10475
- .replace(/^"/, '')
10476
- .replace(/"$/, '');
10477
+ version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
10477
10478
break;
10478
10479
}
10479
10480
}
@@ -10506,7 +10507,11 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
10506
10507
10507
10508
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10508
10509
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);
10510
10515
}) : (function(o, m, k, k2) {
10511
10516
if (k2 === undefined) k2 = k;
10512
10517
o[k2] = m[k];
@@ -10519,7 +10524,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
10519
10524
var __importStar = (this && this.__importStar) || function (mod) {
10520
10525
if (mod && mod.__esModule) return mod;
10521
10526
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);
10523
10528
__setModuleDefault(result, mod);
10524
10529
return result;
10525
10530
};
@@ -10596,7 +10601,11 @@ exports.RetryHelper = RetryHelper;
10596
10601
10597
10602
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10598
10603
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);
10600
10609
}) : (function(o, m, k, k2) {
10601
10610
if (k2 === undefined) k2 = k;
10602
10611
o[k2] = m[k];
@@ -10609,7 +10618,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
10609
10618
var __importStar = (this && this.__importStar) || function (mod) {
10610
10619
if (mod && mod.__esModule) return mod;
10611
10620
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);
10613
10622
__setModuleDefault(result, mod);
10614
10623
return result;
10615
10624
};
@@ -10622,13 +10631,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10622
10631
step((generator = generator.apply(thisArg, _arguments || [])).next());
10623
10632
});
10624
10633
};
10625
- var __importDefault = (this && this.__importDefault) || function (mod) {
10626
- return (mod && mod.__esModule) ? mod : { "default": mod };
10627
- };
10628
10634
Object.defineProperty(exports, "__esModule", ({ value: true }));
10629
10635
exports.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;
10630
10636
const core = __importStar(__nccwpck_require__(7484));
10631
10637
const io = __importStar(__nccwpck_require__(4994));
10638
+ const crypto = __importStar(__nccwpck_require__(6982));
10632
10639
const fs = __importStar(__nccwpck_require__(9896));
10633
10640
const mm = __importStar(__nccwpck_require__(8036));
10634
10641
const os = __importStar(__nccwpck_require__(857));
@@ -10638,7 +10645,6 @@ const semver = __importStar(__nccwpck_require__(6193));
10638
10645
const stream = __importStar(__nccwpck_require__(2203));
10639
10646
const util = __importStar(__nccwpck_require__(9023));
10640
10647
const assert_1 = __nccwpck_require__(2613);
10641
- const v4_1 = __importDefault(__nccwpck_require__(1350));
10642
10648
const exec_1 = __nccwpck_require__(5236);
10643
10649
const retry_helper_1 = __nccwpck_require__(7380);
10644
10650
class HTTPError extends Error {
@@ -10663,7 +10669,7 @@ const userAgent = 'actions/tool-cache';
10663
10669
*/
10664
10670
function downloadTool(url, dest, auth, headers) {
10665
10671
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 ());
10667
10673
yield io.mkdirP(path.dirname(dest));
10668
10674
core.debug(`Downloading ${url}`);
10669
10675
core.debug(`Destination ${dest}`);
@@ -10752,8 +10758,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
10752
10758
*/
10753
10759
function extract7z(file, dest, _7zPath) {
10754
10760
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');
10757
10763
dest = yield _createExtractFolder(dest);
10758
10764
const originalCwd = process.cwd();
10759
10765
process.chdir(dest);
@@ -10770,7 +10776,7 @@ function extract7z(file, dest, _7zPath) {
10770
10776
const options = {
10771
10777
silent: true
10772
10778
};
10773
- yield exec_1.exec(`"${_7zPath}"`, args, options);
10779
+ yield (0, exec_1.exec) (`"${_7zPath}"`, args, options);
10774
10780
}
10775
10781
finally {
10776
10782
process.chdir(originalCwd);
@@ -10799,7 +10805,7 @@ function extract7z(file, dest, _7zPath) {
10799
10805
};
10800
10806
try {
10801
10807
const powershellPath = yield io.which('powershell', true);
10802
- yield exec_1.exec(`"${powershellPath}"`, args, options);
10808
+ yield (0, exec_1.exec) (`"${powershellPath}"`, args, options);
10803
10809
}
10804
10810
finally {
10805
10811
process.chdir(originalCwd);
@@ -10827,7 +10833,7 @@ function extractTar(file, dest, flags = 'xz') {
10827
10833
// Determine whether GNU tar
10828
10834
core.debug('Checking tar --version');
10829
10835
let versionOutput = '';
10830
- yield exec_1.exec('tar --version', [], {
10836
+ yield (0, exec_1.exec) ('tar --version', [], {
10831
10837
ignoreReturnCode: true,
10832
10838
silent: true,
10833
10839
listeners: {
@@ -10863,7 +10869,7 @@ function extractTar(file, dest, flags = 'xz') {
10863
10869
args.push('--overwrite');
10864
10870
}
10865
10871
args.push('-C', destArg, '-f', fileArg);
10866
- yield exec_1.exec(`tar`, args);
10872
+ yield (0, exec_1.exec) (`tar`, args);
10867
10873
return dest;
10868
10874
});
10869
10875
}
@@ -10878,8 +10884,8 @@ exports.extractTar = extractTar;
10878
10884
*/
10879
10885
function extractXar(file, dest, flags = []) {
10880
10886
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');
10883
10889
dest = yield _createExtractFolder(dest);
10884
10890
let args;
10885
10891
if (flags instanceof Array) {
@@ -10893,7 +10899,7 @@ function extractXar(file, dest, flags = []) {
10893
10899
args.push('-v');
10894
10900
}
10895
10901
const xarPath = yield io.which('xar', true);
10896
- yield exec_1.exec(`"${xarPath}"`, _unique(args));
10902
+ yield (0, exec_1.exec) (`"${xarPath}"`, _unique(args));
10897
10903
return dest;
10898
10904
});
10899
10905
}
@@ -10947,7 +10953,7 @@ function extractZipWin(file, dest) {
10947
10953
pwshCommand
10948
10954
];
10949
10955
core.debug(`Using pwsh at path: ${pwshPath}`);
10950
- yield exec_1.exec(`"${pwshPath}"`, args);
10956
+ yield (0, exec_1.exec) (`"${pwshPath}"`, args);
10951
10957
}
10952
10958
else {
10953
10959
const powershellCommand = [
@@ -10968,7 +10974,7 @@ function extractZipWin(file, dest) {
10968
10974
];
10969
10975
const powershellPath = yield io.which('powershell', true);
10970
10976
core.debug(`Using powershell at path: ${powershellPath}`);
10971
- yield exec_1.exec(`"${powershellPath}"`, args);
10977
+ yield (0, exec_1.exec) (`"${powershellPath}"`, args);
10972
10978
}
10973
10979
});
10974
10980
}
@@ -10980,7 +10986,7 @@ function extractZipNix(file, dest) {
10980
10986
args.unshift('-q');
10981
10987
}
10982
10988
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 });
10984
10990
});
10985
10991
}
10986
10992
/**
@@ -11157,7 +11163,7 @@ function _createExtractFolder(dest) {
11157
11163
return __awaiter(this, void 0, void 0, function* () {
11158
11164
if (!dest) {
11159
11165
// create a temp dir
11160
- dest = path.join(_getTempDirectory(), v4_1.default ());
11166
+ dest = path.join(_getTempDirectory(), crypto.randomUUID ());
11161
11167
}
11162
11168
yield io.mkdirP(dest);
11163
11169
return dest;
@@ -11230,15 +11236,15 @@ exports.evaluateVersions = evaluateVersions;
11230
11236
*/
11231
11237
function _getCacheDirectory() {
11232
11238
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');
11234
11240
return cacheDirectory;
11235
11241
}
11236
11242
/**
11237
11243
* Gets RUNNER_TEMP
11238
11244
*/
11239
11245
function _getTempDirectory() {
11240
11246
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');
11242
11248
return tempDirectory;
11243
11249
}
11244
11250
/**
@@ -12909,90 +12915,6 @@ function coerce (version, options) {
12909
12915
}
12910
12916
12911
12917
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
-
12996
12918
/***/ }),
12997
12919
12998
12920
/***/ 8110:
0 commit comments