diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 75b7e3e32..030bcfd3e 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -125,9 +125,11 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch // Internal Error return undefined; } + core.debug(`Cache Entry: ${JSON.stringify(cacheEntry)}`); archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); core.debug(`Archive Path: ${archivePath}`); const cacheKey = (_b = (_a = cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cache_entry) === null || _a === void 0 ? void 0 : _a.cache_user_given_key) !== null && _b !== void 0 ? _b : primaryKey; + core.debug(`Cache Key: ${cacheKey}`); switch (cacheEntry.provider) { case 's3': case 'r2': { @@ -142,7 +144,8 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch yield cacheHttpClient.downloadCache('s3', (_d = cacheEntry.s3) === null || _d === void 0 ? void 0 : _d.pre_signed_url, archivePath); } catch (error) { - core.info('Cache Miss. Failed to download cache.'); + core.debug(`Failed to download cache: ${error}`); + core.info(`Cache Miss. Failed to download cache from ${cacheEntry.provider}. Error: ${error}`); return undefined; } if (core.isDebug()) { @@ -874,7 +877,7 @@ const fs = __importStar(__nccwpck_require__(57147)); const path = __importStar(__nccwpck_require__(71017)); const semver = __importStar(__nccwpck_require__(3771)); const util = __importStar(__nccwpck_require__(73837)); -const uuid_1 = __nccwpck_require__(63730); +const uuid_1 = __nccwpck_require__(94138); const constants_1 = __nccwpck_require__(88840); // From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23 function createTempDirectory() { @@ -1451,10 +1454,17 @@ function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options keepAlive: true }); try { - const res = yield (0, requestUtils_1.retryHttpClientResponse)('downloadCacheMetadata', () => __awaiter(this, void 0, void 0, function* () { return yield httpClient.request('HEAD', archiveLocation, null, {}); })); - const lengthHeader = res.message.headers['content-length']; - if (lengthHeader === undefined || lengthHeader === null) { - throw new Error('Content-Length not found on blob response'); + // Use Range request to get total file size (works with PresignGetObject URLs) + const res = yield (0, requestUtils_1.retryHttpClientResponse)('downloadCacheMetadata', () => __awaiter(this, void 0, void 0, function* () { return yield httpClient.get(archiveLocation, { Range: 'bytes=0-0' }); })); + const contentRange = res.message.headers['content-range']; + if (!contentRange) { + throw new Error('Content-Range header not found - server may not support range requests'); + } + // Parse "bytes 0-0/12345" to get total length (12345) + const match = contentRange.match(/bytes \d+-\d+\/(\d+)/); + const lengthHeader = match === null || match === void 0 ? void 0 : match[1]; + if (!lengthHeader) { + throw new Error('Could not parse total file size from Content-Range header'); } const length = parseInt(lengthHeader); if (Number.isNaN(length)) { @@ -1498,6 +1508,7 @@ function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options while (actives > 0) { yield waitAndWrite(); } + progress.stopDisplayTimer(); } finally { httpClient.dispose(); @@ -5111,6 +5122,221 @@ function coerce (version, options) { } +/***/ }), + +/***/ 94138: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var v1 = __nccwpck_require__(61610); +var v4 = __nccwpck_require__(8373); + +var uuid = v4; +uuid.v1 = v1; +uuid.v4 = v4; + +module.exports = uuid; + + +/***/ }), + +/***/ 65694: +/***/ ((module) => { + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +var byteToHex = []; +for (var i = 0; i < 256; ++i) { + byteToHex[i] = (i + 0x100).toString(16).substr(1); +} + +function bytesToUuid(buf, offset) { + var i = offset || 0; + var bth = byteToHex; + // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + return ([ + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]] + ]).join(''); +} + +module.exports = bytesToUuid; + + +/***/ }), + +/***/ 34069: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +// Unique ID creation requires a high quality random # generator. In node.js +// this is pretty straight-forward - we use the crypto API. + +var crypto = __nccwpck_require__(6113); + +module.exports = function nodeRNG() { + return crypto.randomBytes(16); +}; + + +/***/ }), + +/***/ 61610: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var rng = __nccwpck_require__(34069); +var bytesToUuid = __nccwpck_require__(65694); + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +var _nodeId; +var _clockseq; + +// Previous uuid creation time +var _lastMSecs = 0; +var _lastNSecs = 0; + +// See https://github.com/uuidjs/uuid for API details +function v1(options, buf, offset) { + var i = buf && offset || 0; + var b = buf || []; + + options = options || {}; + var node = options.node || _nodeId; + var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; + + // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + if (node == null || clockseq == null) { + var seedBytes = rng(); + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [ + seedBytes[0] | 0x01, + seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5] + ]; + } + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } + + // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); + + // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; + + // Time since last uuid creation (in msecs) + var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000; + + // Per 4.2.1.2, Bump clockseq on clock regression + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } + + // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } + + // Per 4.2.1.2 Throw error if too many uuids are requested + if (nsecs >= 10000) { + throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec'); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + + // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + msecs += 12219292800000; + + // `time_low` + var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; + + // `time_mid` + var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; + + // `time_high_and_version` + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + b[i++] = tmh >>> 16 & 0xff; + + // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + b[i++] = clockseq >>> 8 | 0x80; + + // `clock_seq_low` + b[i++] = clockseq & 0xff; + + // `node` + for (var n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf ? buf : bytesToUuid(b); +} + +module.exports = v1; + + +/***/ }), + +/***/ 8373: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var rng = __nccwpck_require__(34069); +var bytesToUuid = __nccwpck_require__(65694); + +function v4(options, buf, offset) { + var i = buf && offset || 0; + + if (typeof(options) == 'string') { + buf = options === 'binary' ? new Array(16) : null; + options = null; + } + options = options || {}; + + var rnds = options.random || (options.rng || rng)(); + + // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + + // Copy bytes to buffer, if provided + if (buf) { + for (var ii = 0; ii < 16; ++ii) { + buf[i + ii] = rnds[ii]; + } + } + + return buf || bytesToUuid(rnds); +} + +module.exports = v4; + + /***/ }), /***/ 87351: @@ -122547,623 +122773,6 @@ exports.highSurrogateFrom = 0xd800; exports.highSurrogateTo = 0xdbff; //# sourceMappingURL=surrogate-pairs.js.map -/***/ }), - -/***/ 63730: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; -var max_js_1 = __nccwpck_require__(44838); -Object.defineProperty(exports, "MAX", ({ enumerable: true, get: function () { return max_js_1.default; } })); -var nil_js_1 = __nccwpck_require__(34578); -Object.defineProperty(exports, "NIL", ({ enumerable: true, get: function () { return nil_js_1.default; } })); -var parse_js_1 = __nccwpck_require__(62526); -Object.defineProperty(exports, "parse", ({ enumerable: true, get: function () { return parse_js_1.default; } })); -var stringify_js_1 = __nccwpck_require__(22428); -Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return stringify_js_1.default; } })); -var v1_js_1 = __nccwpck_require__(56904); -Object.defineProperty(exports, "v1", ({ enumerable: true, get: function () { return v1_js_1.default; } })); -var v1ToV6_js_1 = __nccwpck_require__(90728); -Object.defineProperty(exports, "v1ToV6", ({ enumerable: true, get: function () { return v1ToV6_js_1.default; } })); -var v3_js_1 = __nccwpck_require__(6261); -Object.defineProperty(exports, "v3", ({ enumerable: true, get: function () { return v3_js_1.default; } })); -var v4_js_1 = __nccwpck_require__(59079); -Object.defineProperty(exports, "v4", ({ enumerable: true, get: function () { return v4_js_1.default; } })); -var v5_js_1 = __nccwpck_require__(19985); -Object.defineProperty(exports, "v5", ({ enumerable: true, get: function () { return v5_js_1.default; } })); -var v6_js_1 = __nccwpck_require__(21952); -Object.defineProperty(exports, "v6", ({ enumerable: true, get: function () { return v6_js_1.default; } })); -var v6ToV1_js_1 = __nccwpck_require__(97112); -Object.defineProperty(exports, "v6ToV1", ({ enumerable: true, get: function () { return v6ToV1_js_1.default; } })); -var v7_js_1 = __nccwpck_require__(3598); -Object.defineProperty(exports, "v7", ({ enumerable: true, get: function () { return v7_js_1.default; } })); -var validate_js_1 = __nccwpck_require__(83053); -Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return validate_js_1.default; } })); -var version_js_1 = __nccwpck_require__(94384); -Object.defineProperty(exports, "version", ({ enumerable: true, get: function () { return version_js_1.default; } })); - - -/***/ }), - -/***/ 44838: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; - - -/***/ }), - -/***/ 13905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('md5').update(bytes).digest(); -} -exports["default"] = md5; - - -/***/ }), - -/***/ 76622: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -exports["default"] = { randomUUID: crypto_1.randomUUID }; - - -/***/ }), - -/***/ 34578: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = '00000000-0000-0000-0000-000000000000'; - - -/***/ }), - -/***/ 62526: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const validate_js_1 = __nccwpck_require__(83053); -function parse(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -exports["default"] = parse; - - -/***/ }), - -/***/ 29556: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; - - -/***/ }), - -/***/ 18186: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -const rnds8Pool = new Uint8Array(256); -let poolPtr = rnds8Pool.length; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - (0, crypto_1.randomFillSync)(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, (poolPtr += 16)); -} -exports["default"] = rng; - - -/***/ }), - -/***/ 98850: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('sha1').update(bytes).digest(); -} -exports["default"] = sha1; - - -/***/ }), - -/***/ 22428: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.unsafeStringify = void 0; -const validate_js_1 = __nccwpck_require__(83053); -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -exports.unsafeStringify = unsafeStringify; -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -exports["default"] = stringify; - - -/***/ }), - -/***/ 56904: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.updateV1State = void 0; -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -exports.updateV1State = updateV1State; -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -exports["default"] = v1; - - -/***/ }), - -/***/ 90728: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; -} -exports["default"] = v1ToV6; -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} - - -/***/ }), - -/***/ 6261: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = void 0; -const md5_js_1 = __nccwpck_require__(13905); -const v35_js_1 = __nccwpck_require__(13042); -var v35_js_2 = __nccwpck_require__(13042); -Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } })); -Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } })); -function v3(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); -} -v3.DNS = v35_js_1.DNS; -v3.URL = v35_js_1.URL; -exports["default"] = v3; - - -/***/ }), - -/***/ 13042: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = exports.stringToBytes = void 0; -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -exports.stringToBytes = stringToBytes; -exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = (0, parse_js_1.default)(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports["default"] = v35; - - -/***/ }), - -/***/ 59079: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const native_js_1 = __nccwpck_require__(76622); -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -function v4(options, buf, offset) { - if (native_js_1.default.randomUUID && !buf && !options) { - return native_js_1.default.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(rnds); -} -exports["default"] = v4; - - -/***/ }), - -/***/ 19985: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = void 0; -const sha1_js_1 = __nccwpck_require__(98850); -const v35_js_1 = __nccwpck_require__(13042); -var v35_js_2 = __nccwpck_require__(13042); -Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } })); -Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } })); -function v5(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); -} -v5.DNS = v35_js_1.DNS; -v5.URL = v35_js_1.URL; -exports["default"] = v5; - - -/***/ }), - -/***/ 21952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const stringify_js_1 = __nccwpck_require__(22428); -const v1_js_1 = __nccwpck_require__(56904); -const v1ToV6_js_1 = __nccwpck_require__(90728); -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); - bytes = (0, v1ToV6_js_1.default)(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports["default"] = v6; - - -/***/ }), - -/***/ 97112: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; -} -exports["default"] = v6ToV1; -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} - - -/***/ }), - -/***/ 3598: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.updateV7State = void 0; -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -exports.updateV7State = updateV7State; -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -exports["default"] = v7; - - -/***/ }), - -/***/ 83053: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const regex_js_1 = __nccwpck_require__(29556); -function validate(uuid) { - return typeof uuid === 'string' && regex_js_1.default.test(uuid); -} -exports["default"] = validate; - - -/***/ }), - -/***/ 94384: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const validate_js_1 = __nccwpck_require__(83053); -function version(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -exports["default"] = version; - - /***/ }), /***/ 95430: diff --git a/dist/setup/index.js b/dist/setup/index.js index d48a0fb32..092f6f455 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -125,9 +125,11 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch // Internal Error return undefined; } + core.debug(`Cache Entry: ${JSON.stringify(cacheEntry)}`); archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod)); core.debug(`Archive Path: ${archivePath}`); const cacheKey = (_b = (_a = cacheEntry === null || cacheEntry === void 0 ? void 0 : cacheEntry.cache_entry) === null || _a === void 0 ? void 0 : _a.cache_user_given_key) !== null && _b !== void 0 ? _b : primaryKey; + core.debug(`Cache Key: ${cacheKey}`); switch (cacheEntry.provider) { case 's3': case 'r2': { @@ -142,7 +144,8 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch yield cacheHttpClient.downloadCache('s3', (_d = cacheEntry.s3) === null || _d === void 0 ? void 0 : _d.pre_signed_url, archivePath); } catch (error) { - core.info('Cache Miss. Failed to download cache.'); + core.debug(`Failed to download cache: ${error}`); + core.info(`Cache Miss. Failed to download cache from ${cacheEntry.provider}. Error: ${error}`); return undefined; } if (core.isDebug()) { @@ -874,7 +877,7 @@ const fs = __importStar(__nccwpck_require__(57147)); const path = __importStar(__nccwpck_require__(71017)); const semver = __importStar(__nccwpck_require__(3771)); const util = __importStar(__nccwpck_require__(73837)); -const uuid_1 = __nccwpck_require__(63730); +const uuid_1 = __nccwpck_require__(94138); const constants_1 = __nccwpck_require__(88840); // From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23 function createTempDirectory() { @@ -1451,10 +1454,17 @@ function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options keepAlive: true }); try { - const res = yield (0, requestUtils_1.retryHttpClientResponse)('downloadCacheMetadata', () => __awaiter(this, void 0, void 0, function* () { return yield httpClient.request('HEAD', archiveLocation, null, {}); })); - const lengthHeader = res.message.headers['content-length']; - if (lengthHeader === undefined || lengthHeader === null) { - throw new Error('Content-Length not found on blob response'); + // Use Range request to get total file size (works with PresignGetObject URLs) + const res = yield (0, requestUtils_1.retryHttpClientResponse)('downloadCacheMetadata', () => __awaiter(this, void 0, void 0, function* () { return yield httpClient.get(archiveLocation, { Range: 'bytes=0-0' }); })); + const contentRange = res.message.headers['content-range']; + if (!contentRange) { + throw new Error('Content-Range header not found - server may not support range requests'); + } + // Parse "bytes 0-0/12345" to get total length (12345) + const match = contentRange.match(/bytes \d+-\d+\/(\d+)/); + const lengthHeader = match === null || match === void 0 ? void 0 : match[1]; + if (!lengthHeader) { + throw new Error('Could not parse total file size from Content-Range header'); } const length = parseInt(lengthHeader); if (Number.isNaN(length)) { @@ -1498,6 +1508,7 @@ function downloadCacheHttpClientConcurrent(archiveLocation, archivePath, options while (actives > 0) { yield waitAndWrite(); } + progress.stopDisplayTimer(); } finally { httpClient.dispose(); @@ -5111,6 +5122,221 @@ function coerce (version, options) { } +/***/ }), + +/***/ 94138: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var v1 = __nccwpck_require__(61610); +var v4 = __nccwpck_require__(8373); + +var uuid = v4; +uuid.v1 = v1; +uuid.v4 = v4; + +module.exports = uuid; + + +/***/ }), + +/***/ 65694: +/***/ ((module) => { + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +var byteToHex = []; +for (var i = 0; i < 256; ++i) { + byteToHex[i] = (i + 0x100).toString(16).substr(1); +} + +function bytesToUuid(buf, offset) { + var i = offset || 0; + var bth = byteToHex; + // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + return ([ + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], '-', + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]], + bth[buf[i++]], bth[buf[i++]] + ]).join(''); +} + +module.exports = bytesToUuid; + + +/***/ }), + +/***/ 34069: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +// Unique ID creation requires a high quality random # generator. In node.js +// this is pretty straight-forward - we use the crypto API. + +var crypto = __nccwpck_require__(6113); + +module.exports = function nodeRNG() { + return crypto.randomBytes(16); +}; + + +/***/ }), + +/***/ 61610: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var rng = __nccwpck_require__(34069); +var bytesToUuid = __nccwpck_require__(65694); + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +var _nodeId; +var _clockseq; + +// Previous uuid creation time +var _lastMSecs = 0; +var _lastNSecs = 0; + +// See https://github.com/uuidjs/uuid for API details +function v1(options, buf, offset) { + var i = buf && offset || 0; + var b = buf || []; + + options = options || {}; + var node = options.node || _nodeId; + var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; + + // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + if (node == null || clockseq == null) { + var seedBytes = rng(); + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [ + seedBytes[0] | 0x01, + seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5] + ]; + } + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } + + // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); + + // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; + + // Time since last uuid creation (in msecs) + var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000; + + // Per 4.2.1.2, Bump clockseq on clock regression + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } + + // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } + + // Per 4.2.1.2 Throw error if too many uuids are requested + if (nsecs >= 10000) { + throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec'); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + + // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + msecs += 12219292800000; + + // `time_low` + var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; + + // `time_mid` + var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; + + // `time_high_and_version` + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + b[i++] = tmh >>> 16 & 0xff; + + // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + b[i++] = clockseq >>> 8 | 0x80; + + // `clock_seq_low` + b[i++] = clockseq & 0xff; + + // `node` + for (var n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf ? buf : bytesToUuid(b); +} + +module.exports = v1; + + +/***/ }), + +/***/ 8373: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var rng = __nccwpck_require__(34069); +var bytesToUuid = __nccwpck_require__(65694); + +function v4(options, buf, offset) { + var i = buf && offset || 0; + + if (typeof(options) == 'string') { + buf = options === 'binary' ? new Array(16) : null; + options = null; + } + options = options || {}; + + var rnds = options.random || (options.rng || rng)(); + + // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + + // Copy bytes to buffer, if provided + if (buf) { + for (var ii = 0; ii < 16; ++ii) { + buf[i + ii] = rnds[ii]; + } + } + + return buf || bytesToUuid(rnds); +} + +module.exports = v4; + + /***/ }), /***/ 87351: @@ -129197,623 +129423,6 @@ exports.highSurrogateFrom = 0xd800; exports.highSurrogateTo = 0xdbff; //# sourceMappingURL=surrogate-pairs.js.map -/***/ }), - -/***/ 63730: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0; -var max_js_1 = __nccwpck_require__(44838); -Object.defineProperty(exports, "MAX", ({ enumerable: true, get: function () { return max_js_1.default; } })); -var nil_js_1 = __nccwpck_require__(34578); -Object.defineProperty(exports, "NIL", ({ enumerable: true, get: function () { return nil_js_1.default; } })); -var parse_js_1 = __nccwpck_require__(62526); -Object.defineProperty(exports, "parse", ({ enumerable: true, get: function () { return parse_js_1.default; } })); -var stringify_js_1 = __nccwpck_require__(22428); -Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return stringify_js_1.default; } })); -var v1_js_1 = __nccwpck_require__(56904); -Object.defineProperty(exports, "v1", ({ enumerable: true, get: function () { return v1_js_1.default; } })); -var v1ToV6_js_1 = __nccwpck_require__(90728); -Object.defineProperty(exports, "v1ToV6", ({ enumerable: true, get: function () { return v1ToV6_js_1.default; } })); -var v3_js_1 = __nccwpck_require__(6261); -Object.defineProperty(exports, "v3", ({ enumerable: true, get: function () { return v3_js_1.default; } })); -var v4_js_1 = __nccwpck_require__(59079); -Object.defineProperty(exports, "v4", ({ enumerable: true, get: function () { return v4_js_1.default; } })); -var v5_js_1 = __nccwpck_require__(19985); -Object.defineProperty(exports, "v5", ({ enumerable: true, get: function () { return v5_js_1.default; } })); -var v6_js_1 = __nccwpck_require__(21952); -Object.defineProperty(exports, "v6", ({ enumerable: true, get: function () { return v6_js_1.default; } })); -var v6ToV1_js_1 = __nccwpck_require__(97112); -Object.defineProperty(exports, "v6ToV1", ({ enumerable: true, get: function () { return v6ToV1_js_1.default; } })); -var v7_js_1 = __nccwpck_require__(3598); -Object.defineProperty(exports, "v7", ({ enumerable: true, get: function () { return v7_js_1.default; } })); -var validate_js_1 = __nccwpck_require__(83053); -Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return validate_js_1.default; } })); -var version_js_1 = __nccwpck_require__(94384); -Object.defineProperty(exports, "version", ({ enumerable: true, get: function () { return version_js_1.default; } })); - - -/***/ }), - -/***/ 44838: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff'; - - -/***/ }), - -/***/ 13905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('md5').update(bytes).digest(); -} -exports["default"] = md5; - - -/***/ }), - -/***/ 76622: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -exports["default"] = { randomUUID: crypto_1.randomUUID }; - - -/***/ }), - -/***/ 34578: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = '00000000-0000-0000-0000-000000000000'; - - -/***/ }), - -/***/ 62526: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const validate_js_1 = __nccwpck_require__(83053); -function parse(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - let v; - return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff); -} -exports["default"] = parse; - - -/***/ }), - -/***/ 29556: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i; - - -/***/ }), - -/***/ 18186: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -const rnds8Pool = new Uint8Array(256); -let poolPtr = rnds8Pool.length; -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - (0, crypto_1.randomFillSync)(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, (poolPtr += 16)); -} -exports["default"] = rng; - - -/***/ }), - -/***/ 98850: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const crypto_1 = __nccwpck_require__(6113); -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } - else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - return (0, crypto_1.createHash)('sha1').update(bytes).digest(); -} -exports["default"] = sha1; - - -/***/ }), - -/***/ 22428: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.unsafeStringify = void 0; -const validate_js_1 = __nccwpck_require__(83053); -const byteToHex = []; -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} -function unsafeStringify(arr, offset = 0) { - return (byteToHex[arr[offset + 0]] + - byteToHex[arr[offset + 1]] + - byteToHex[arr[offset + 2]] + - byteToHex[arr[offset + 3]] + - '-' + - byteToHex[arr[offset + 4]] + - byteToHex[arr[offset + 5]] + - '-' + - byteToHex[arr[offset + 6]] + - byteToHex[arr[offset + 7]] + - '-' + - byteToHex[arr[offset + 8]] + - byteToHex[arr[offset + 9]] + - '-' + - byteToHex[arr[offset + 10]] + - byteToHex[arr[offset + 11]] + - byteToHex[arr[offset + 12]] + - byteToHex[arr[offset + 13]] + - byteToHex[arr[offset + 14]] + - byteToHex[arr[offset + 15]]).toLowerCase(); -} -exports.unsafeStringify = unsafeStringify; -function stringify(arr, offset = 0) { - const uuid = unsafeStringify(arr, offset); - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - return uuid; -} -exports["default"] = stringify; - - -/***/ }), - -/***/ 56904: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.updateV1State = void 0; -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -const _state = {}; -function v1(options, buf, offset) { - let bytes; - const isV6 = options?._v6 ?? false; - if (options) { - const optionsKeys = Object.keys(options); - if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') { - options = undefined; - } - } - if (options) { - bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV1State(_state, now, rnds); - bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV1State(state, now, rnds) { - state.msecs ??= -Infinity; - state.nsecs ??= 0; - if (now === state.msecs) { - state.nsecs++; - if (state.nsecs >= 10000) { - state.node = undefined; - state.nsecs = 0; - } - } - else if (now > state.msecs) { - state.nsecs = 0; - } - else if (now < state.msecs) { - state.node = undefined; - } - if (!state.node) { - state.node = rnds.slice(10, 16); - state.node[0] |= 0x01; - state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff; - } - state.msecs = now; - return state; -} -exports.updateV1State = updateV1State; -function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - nsecs ??= 0; - clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff; - node ??= rnds.slice(10, 16); - msecs += 12219292800000; - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - buf[offset++] = (tl >>> 24) & 0xff; - buf[offset++] = (tl >>> 16) & 0xff; - buf[offset++] = (tl >>> 8) & 0xff; - buf[offset++] = tl & 0xff; - const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff; - buf[offset++] = (tmh >>> 8) & 0xff; - buf[offset++] = tmh & 0xff; - buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10; - buf[offset++] = (tmh >>> 16) & 0xff; - buf[offset++] = (clockseq >>> 8) | 0x80; - buf[offset++] = clockseq & 0xff; - for (let n = 0; n < 6; ++n) { - buf[offset++] = node[n]; - } - return buf; -} -exports["default"] = v1; - - -/***/ }), - -/***/ 90728: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function v1ToV6(uuid) { - const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v6Bytes = _v1ToV6(v1Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes; -} -exports["default"] = v1ToV6; -function _v1ToV6(v1Bytes) { - return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]); -} - - -/***/ }), - -/***/ 6261: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = void 0; -const md5_js_1 = __nccwpck_require__(13905); -const v35_js_1 = __nccwpck_require__(13042); -var v35_js_2 = __nccwpck_require__(13042); -Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } })); -Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } })); -function v3(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset); -} -v3.DNS = v35_js_1.DNS; -v3.URL = v35_js_1.URL; -exports["default"] = v3; - - -/***/ }), - -/***/ 13042: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = exports.stringToBytes = void 0; -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = new Uint8Array(str.length); - for (let i = 0; i < str.length; ++i) { - bytes[i] = str.charCodeAt(i); - } - return bytes; -} -exports.stringToBytes = stringToBytes; -exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -function v35(version, hash, value, namespace, buf, offset) { - const valueBytes = typeof value === 'string' ? stringToBytes(value) : value; - const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace; - if (typeof namespace === 'string') { - namespace = (0, parse_js_1.default)(namespace); - } - if (namespace?.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } - let bytes = new Uint8Array(16 + valueBytes.length); - bytes.set(namespaceBytes); - bytes.set(valueBytes, namespaceBytes.length); - bytes = hash(bytes); - bytes[6] = (bytes[6] & 0x0f) | version; - bytes[8] = (bytes[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports["default"] = v35; - - -/***/ }), - -/***/ 59079: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const native_js_1 = __nccwpck_require__(76622); -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -function v4(options, buf, offset) { - if (native_js_1.default.randomUUID && !buf && !options) { - return native_js_1.default.randomUUID(); - } - options = options || {}; - const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)(); - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - rnds[6] = (rnds[6] & 0x0f) | 0x40; - rnds[8] = (rnds[8] & 0x3f) | 0x80; - if (buf) { - offset = offset || 0; - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(rnds); -} -exports["default"] = v4; - - -/***/ }), - -/***/ 19985: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.URL = exports.DNS = void 0; -const sha1_js_1 = __nccwpck_require__(98850); -const v35_js_1 = __nccwpck_require__(13042); -var v35_js_2 = __nccwpck_require__(13042); -Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } })); -Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } })); -function v5(value, namespace, buf, offset) { - return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset); -} -v5.DNS = v35_js_1.DNS; -v5.URL = v35_js_1.URL; -exports["default"] = v5; - - -/***/ }), - -/***/ 21952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const stringify_js_1 = __nccwpck_require__(22428); -const v1_js_1 = __nccwpck_require__(56904); -const v1ToV6_js_1 = __nccwpck_require__(90728); -function v6(options, buf, offset) { - options ??= {}; - offset ??= 0; - let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16)); - bytes = (0, v1ToV6_js_1.default)(bytes); - if (buf) { - for (let i = 0; i < 16; i++) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, stringify_js_1.unsafeStringify)(bytes); -} -exports["default"] = v6; - - -/***/ }), - -/***/ 97112: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const parse_js_1 = __nccwpck_require__(62526); -const stringify_js_1 = __nccwpck_require__(22428); -function v6ToV1(uuid) { - const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid; - const v1Bytes = _v6ToV1(v6Bytes); - return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes; -} -exports["default"] = v6ToV1; -function _v6ToV1(v6Bytes) { - return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]); -} - - -/***/ }), - -/***/ 3598: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.updateV7State = void 0; -const rng_js_1 = __nccwpck_require__(18186); -const stringify_js_1 = __nccwpck_require__(22428); -const _state = {}; -function v7(options, buf, offset) { - let bytes; - if (options) { - bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset); - } - else { - const now = Date.now(); - const rnds = (0, rng_js_1.default)(); - updateV7State(_state, now, rnds); - bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset); - } - return buf ?? (0, stringify_js_1.unsafeStringify)(bytes); -} -function updateV7State(state, now, rnds) { - state.msecs ??= -Infinity; - state.seq ??= 0; - if (now > state.msecs) { - state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - state.msecs = now; - } - else { - state.seq = (state.seq + 1) | 0; - if (state.seq === 0) { - state.msecs++; - } - } - return state; -} -exports.updateV7State = updateV7State; -function v7Bytes(rnds, msecs, seq, buf, offset = 0) { - if (rnds.length < 16) { - throw new Error('Random bytes length must be >= 16'); - } - if (!buf) { - buf = new Uint8Array(16); - offset = 0; - } - else { - if (offset < 0 || offset + 16 > buf.length) { - throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`); - } - } - msecs ??= Date.now(); - seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9]; - buf[offset++] = (msecs / 0x10000000000) & 0xff; - buf[offset++] = (msecs / 0x100000000) & 0xff; - buf[offset++] = (msecs / 0x1000000) & 0xff; - buf[offset++] = (msecs / 0x10000) & 0xff; - buf[offset++] = (msecs / 0x100) & 0xff; - buf[offset++] = msecs & 0xff; - buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f); - buf[offset++] = (seq >>> 20) & 0xff; - buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f); - buf[offset++] = (seq >>> 6) & 0xff; - buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03); - buf[offset++] = rnds[11]; - buf[offset++] = rnds[12]; - buf[offset++] = rnds[13]; - buf[offset++] = rnds[14]; - buf[offset++] = rnds[15]; - return buf; -} -exports["default"] = v7; - - -/***/ }), - -/***/ 83053: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const regex_js_1 = __nccwpck_require__(29556); -function validate(uuid) { - return typeof uuid === 'string' && regex_js_1.default.test(uuid); -} -exports["default"] = validate; - - -/***/ }), - -/***/ 94384: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const validate_js_1 = __nccwpck_require__(83053); -function version(uuid) { - if (!(0, validate_js_1.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - return parseInt(uuid.slice(14, 15), 16); -} -exports["default"] = version; - - /***/ }), /***/ 95430: diff --git a/package-lock.json b/package-lock.json index e7a61497e..f880ed26a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "4.1.1", "license": "MIT", "dependencies": { - "@actions/cache": "npm:github-actions.warp-cache@1.4.6", + "@actions/cache": "npm:github-actions.warp-cache@1.4.7", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/github": "^6.0.0", @@ -55,12 +55,12 @@ }, "node_modules/@actions/cache": { "name": "github-actions.warp-cache", - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/github-actions.warp-cache/-/github-actions.warp-cache-1.4.6.tgz", - "integrity": "sha512-WAB/kEi4Knb0PxS0xSWGPKJ0UNU31LzK9vpt6IYpPdk32bXicq/ncxLwN/28zssxNF+f+T1Ch79/nZcjFGUi7g==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/github-actions.warp-cache/-/github-actions.warp-cache-1.4.7.tgz", + "integrity": "sha512-TwYF+iv/l1uZRp3D0iBj+zoPZPhd3gpvKuarLxnB9de7KUFvG79M3fDIqhjjXa4l53XcfZKBt31H6UcsKiXlTw==", "license": "MIT", "dependencies": { - "@actions/core": "^1.11.1", + "@actions/core": "^1.10.0", "@actions/exec": "^1.0.1", "@actions/github": "^6.0.0", "@actions/glob": "^0.1.0", @@ -68,9 +68,13 @@ "@actions/io": "^1.0.1", "@azure/abort-controller": "^1.1.0", "@azure/ms-rest-js": "^2.6.0", - "@azure/storage-blob": "^12.13.0", - "@protobuf-ts/plugin": "^2.9.4", - "semver": "^6.3.1" + "@azure/storage-blob": "^12.25.0", + "@google-cloud/storage": "^7.9.0", + "@octokit/webhooks-definitions": "^3.67.3", + "axios": "^1.6.2", + "google-auth-library": "^9.7.0", + "semver": "^6.3.1", + "uuid": "^3.3.3" } }, "node_modules/@actions/cache/node_modules/@actions/glob": { @@ -90,6 +94,16 @@ "semver": "bin/semver.js" } }, + "node_modules/@actions/cache/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } + }, "node_modules/@actions/core": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", @@ -1805,82 +1819,12 @@ "@octokit/openapi-types": "^19.0.2" } }, - "node_modules/@protobuf-ts/plugin": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.9.5.tgz", - "integrity": "sha512-KCzNRTFye837XdfPjS85gGzxgPGVDR3W8Px2G3etXuouNog9W+Cr+U0IBTFADrRWXC2x+OSNjXxrdZEiw+H5Cw==", - "license": "Apache-2.0", - "dependencies": { - "@protobuf-ts/plugin-framework": "^2.9.5", - "@protobuf-ts/protoc": "^2.9.5", - "@protobuf-ts/runtime": "^2.9.5", - "@protobuf-ts/runtime-rpc": "^2.9.5", - "typescript": "^3.9" - }, - "bin": { - "protoc-gen-dump": "bin/protoc-gen-dump", - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, - "node_modules/@protobuf-ts/plugin-framework": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin-framework/-/plugin-framework-2.9.5.tgz", - "integrity": "sha512-DYNQ8Ga3xwPZMfaZGRCnDOcEdQZK9MorTXngVoFLnHWEE8zLhUjFVtdkChZtTih6rl8Z6akyA7hRgj/GrJF58Q==", - "license": "(Apache-2.0 AND BSD-3-Clause)", - "dependencies": { - "@protobuf-ts/runtime": "^2.9.5", - "typescript": "^3.9" - } - }, - "node_modules/@protobuf-ts/plugin-framework/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/@protobuf-ts/plugin/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/@protobuf-ts/protoc": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.9.5.tgz", - "integrity": "sha512-n6a7OHfr/Ubw483L6kNJB0wBCe/Ops0A652zB6J6nR2x1o+pjVFrMCeeQQsqxkYpQwQ8FCIETSxrMpfOBKTIvQ==", - "license": "Apache-2.0", - "bin": { - "protoc": "protoc.js" - } - }, - "node_modules/@protobuf-ts/runtime": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.9.5.tgz", - "integrity": "sha512-SsumigRe3IqNTCQvVZUqDQExsKF72eyAMiWlYb5Jwj3eU4z8UH7JLlSfb/Wjidz4b/chTN6zh5AXBSKl0Asm3A==", - "license": "(Apache-2.0 AND BSD-3-Clause)" - }, - "node_modules/@protobuf-ts/runtime-rpc": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.9.5.tgz", - "integrity": "sha512-NWAb1TaV4CR+BknZr1WRVT5Ws2AupVwGgRNes4oPAFrgLNXQotDFl2E6pmsjPwME8sAgJVzeSr7bUqQVyoAK2A==", - "license": "Apache-2.0", - "dependencies": { - "@protobuf-ts/runtime": "^2.9.5" - } + "node_modules/@octokit/webhooks-definitions": { + "version": "3.68.1", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-definitions/-/webhooks-definitions-3.68.1.tgz", + "integrity": "sha512-wa8koFift24mUsMarWP/wfl9kIwqL5TK9smsCRIyJYfs9iYQEoJsQjcmhyKCmevPA8Ja/K1ZTE4W8ABA0yMM8g==", + "deprecated": "Use @octokit/webhooks-types, @octokit/webhooks-schemas, or @octokit/webhooks-examples instead. See https://github.com/octokit/webhooks/issues/447", + "license": "MIT" }, "node_modules/@sinclair/typebox": { "version": "0.27.8", diff --git a/package.json b/package.json index c9fe443f1..c4f63205f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "author": "GitHub", "license": "MIT", "dependencies": { - "@actions/cache": "npm:github-actions.warp-cache@1.4.6", + "@actions/cache": "npm:github-actions.warp-cache@1.4.7", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/github": "^6.0.0",