mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 12:54:21 +08:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					0057852bfa | ||
| 
						 | 
					4f5ea67f1c | ||
| 
						 | 
					9fcad95d03 | ||
| 
						 | 
					638ed79f9d | ||
| 
						 | 
					3862dccb17 | 
							
								
								
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
name: "@actions/cache"
 | 
					name: "@actions/cache"
 | 
				
			||||||
version: 4.0.5
 | 
					version: 4.1.0
 | 
				
			||||||
type: npm
 | 
					type: npm
 | 
				
			||||||
summary: Actions cache lib
 | 
					summary: Actions cache lib
 | 
				
			||||||
homepage: https://github.com/actions/toolkit/tree/main/packages/cache
 | 
					homepage: https://github.com/actions/toolkit/tree/main/packages/cache
 | 
				
			||||||
 | 
				
			|||||||
@ -19,16 +19,19 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
 | 
					The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**.
 | 
					The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these releases are **fully backward compatible**.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
 | 
					**We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`
 | 
					If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
 | 
					If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Upgrading to the recommended versions will not break your workflows.
 | 
					Upgrading to the recommended versions will not break your workflows.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> **Additionally, if you are managing your own GitHub runners, you must update your runner version to `2.231.0` or newer to ensure compatibility with the new cache service.**  
 | 
				
			||||||
 | 
					> Failure to update both the action version and your runner version may result in workflow failures after the migration date.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510).
 | 
					Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v4
 | 
					### v4
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,9 @@
 | 
				
			|||||||
# Releases
 | 
					# Releases
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 4.3.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Bump `@actions/cache` to [v4.1.0](https://github.com/actions/toolkit/pull/2132)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 4.2.4
 | 
					### 4.2.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Bump `@actions/cache` to v4.0.5
 | 
					- Bump `@actions/cache` to v4.0.5
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										50
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							@ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
					Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
				
			||||||
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
					exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
				
			||||||
const core = __importStar(__nccwpck_require__(7484));
 | 
					const core = __importStar(__nccwpck_require__(7484));
 | 
				
			||||||
const path = __importStar(__nccwpck_require__(6928));
 | 
					const path = __importStar(__nccwpck_require__(6928));
 | 
				
			||||||
const utils = __importStar(__nccwpck_require__(8299));
 | 
					const utils = __importStar(__nccwpck_require__(8299));
 | 
				
			||||||
@ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171));
 | 
				
			|||||||
const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
					const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
				
			||||||
const config_1 = __nccwpck_require__(7606);
 | 
					const config_1 = __nccwpck_require__(7606);
 | 
				
			||||||
const tar_1 = __nccwpck_require__(5321);
 | 
					const tar_1 = __nccwpck_require__(5321);
 | 
				
			||||||
const constants_1 = __nccwpck_require__(8287);
 | 
					 | 
				
			||||||
const http_client_1 = __nccwpck_require__(4844);
 | 
					const http_client_1 = __nccwpck_require__(4844);
 | 
				
			||||||
class ValidationError extends Error {
 | 
					class ValidationError extends Error {
 | 
				
			||||||
    constructor(message) {
 | 
					    constructor(message) {
 | 
				
			||||||
@ -65,6 +64,14 @@ class ReserveCacheError extends Error {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.ReserveCacheError = ReserveCacheError;
 | 
					exports.ReserveCacheError = ReserveCacheError;
 | 
				
			||||||
 | 
					class FinalizeCacheError extends Error {
 | 
				
			||||||
 | 
					    constructor(message) {
 | 
				
			||||||
 | 
					        super(message);
 | 
				
			||||||
 | 
					        this.name = 'FinalizeCacheError';
 | 
				
			||||||
 | 
					        Object.setPrototypeOf(this, FinalizeCacheError.prototype);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.FinalizeCacheError = FinalizeCacheError;
 | 
				
			||||||
function checkPaths(paths) {
 | 
					function checkPaths(paths) {
 | 
				
			||||||
    if (!paths || paths.length === 0) {
 | 
					    if (!paths || paths.length === 0) {
 | 
				
			||||||
        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
					        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
				
			||||||
@ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | 
					 | 
				
			||||||
            if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
 | 
					 | 
				
			||||||
                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            // Set the archive size in the options, will be used to display the upload progress
 | 
					            // Set the archive size in the options, will be used to display the upload progress
 | 
				
			||||||
            options.archiveSizeBytes = archiveFileSize;
 | 
					            options.archiveSizeBytes = archiveFileSize;
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					            core.debug('Reserving Cache');
 | 
				
			||||||
@ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = yield twirpClient.CreateCacheEntry(request);
 | 
					                const response = yield twirpClient.CreateCacheEntry(request);
 | 
				
			||||||
                if (!response.ok) {
 | 
					                if (!response.ok) {
 | 
				
			||||||
                    throw new Error('Response was not ok');
 | 
					                    if (response.message) {
 | 
				
			||||||
 | 
					                        core.warning(`Cache reservation failed: ${response.message}`);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    throw new Error(response.message || 'Response was not ok');
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                signedUploadUrl = response.signedUploadUrl;
 | 
					                signedUploadUrl = response.signedUploadUrl;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
					            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
				
			||||||
            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
					            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
				
			||||||
            if (!finalizeResponse.ok) {
 | 
					            if (!finalizeResponse.ok) {
 | 
				
			||||||
 | 
					                if (finalizeResponse.message) {
 | 
				
			||||||
 | 
					                    throw new FinalizeCacheError(finalizeResponse.message);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
					                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            cacheId = parseInt(finalizeResponse.entryId);
 | 
					            cacheId = parseInt(finalizeResponse.entryId);
 | 
				
			||||||
@ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            else if (typedError.name === ReserveCacheError.name) {
 | 
					            else if (typedError.name === ReserveCacheError.name) {
 | 
				
			||||||
                core.info(`Failed to save: ${typedError.message}`);
 | 
					                core.info(`Failed to save: ${typedError.message}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (typedError.name === FinalizeCacheError.name) {
 | 
				
			||||||
 | 
					                core.warning(typedError.message);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                // Log server errors (5xx) as errors, all other errors as warnings
 | 
					                // Log server errors (5xx) as errors, all other errors as warnings
 | 
				
			||||||
                if (typedError instanceof http_client_1.HttpClientError &&
 | 
					                if (typedError instanceof http_client_1.HttpClientError &&
 | 
				
			||||||
@ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
					        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
					            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, signedUploadUrl: "" };
 | 
					        const message = { ok: false, signedUploadUrl: "", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* string signed_upload_url */ 2:
 | 
					                case /* string signed_upload_url */ 2:
 | 
				
			||||||
                    message.signedUploadUrl = reader.string();
 | 
					                    message.signedUploadUrl = reader.string();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* string signed_upload_url = 2; */
 | 
					        /* string signed_upload_url = 2; */
 | 
				
			||||||
        if (message.signedUploadUrl !== "")
 | 
					        if (message.signedUploadUrl !== "")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
					            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
					        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
 | 
					            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, entryId: "0" };
 | 
					        const message = { ok: false, entryId: "0", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* int64 entry_id */ 2:
 | 
					                case /* int64 entry_id */ 2:
 | 
				
			||||||
                    message.entryId = reader.int64().toString();
 | 
					                    message.entryId = reader.int64().toString();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* int64 entry_id = 2; */
 | 
					        /* int64 entry_id = 2; */
 | 
				
			||||||
        if (message.entryId !== "0")
 | 
					        if (message.entryId !== "0")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
					            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -66524,7 +66550,7 @@ module.exports = require("zlib");
 | 
				
			|||||||
/***/ ((module) => {
 | 
					/***/ ((module) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
					module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										50
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
					Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
				
			||||||
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
					exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
				
			||||||
const core = __importStar(__nccwpck_require__(7484));
 | 
					const core = __importStar(__nccwpck_require__(7484));
 | 
				
			||||||
const path = __importStar(__nccwpck_require__(6928));
 | 
					const path = __importStar(__nccwpck_require__(6928));
 | 
				
			||||||
const utils = __importStar(__nccwpck_require__(8299));
 | 
					const utils = __importStar(__nccwpck_require__(8299));
 | 
				
			||||||
@ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171));
 | 
				
			|||||||
const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
					const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
				
			||||||
const config_1 = __nccwpck_require__(7606);
 | 
					const config_1 = __nccwpck_require__(7606);
 | 
				
			||||||
const tar_1 = __nccwpck_require__(5321);
 | 
					const tar_1 = __nccwpck_require__(5321);
 | 
				
			||||||
const constants_1 = __nccwpck_require__(8287);
 | 
					 | 
				
			||||||
const http_client_1 = __nccwpck_require__(4844);
 | 
					const http_client_1 = __nccwpck_require__(4844);
 | 
				
			||||||
class ValidationError extends Error {
 | 
					class ValidationError extends Error {
 | 
				
			||||||
    constructor(message) {
 | 
					    constructor(message) {
 | 
				
			||||||
@ -65,6 +64,14 @@ class ReserveCacheError extends Error {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.ReserveCacheError = ReserveCacheError;
 | 
					exports.ReserveCacheError = ReserveCacheError;
 | 
				
			||||||
 | 
					class FinalizeCacheError extends Error {
 | 
				
			||||||
 | 
					    constructor(message) {
 | 
				
			||||||
 | 
					        super(message);
 | 
				
			||||||
 | 
					        this.name = 'FinalizeCacheError';
 | 
				
			||||||
 | 
					        Object.setPrototypeOf(this, FinalizeCacheError.prototype);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.FinalizeCacheError = FinalizeCacheError;
 | 
				
			||||||
function checkPaths(paths) {
 | 
					function checkPaths(paths) {
 | 
				
			||||||
    if (!paths || paths.length === 0) {
 | 
					    if (!paths || paths.length === 0) {
 | 
				
			||||||
        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
					        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
				
			||||||
@ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | 
					 | 
				
			||||||
            if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
 | 
					 | 
				
			||||||
                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            // Set the archive size in the options, will be used to display the upload progress
 | 
					            // Set the archive size in the options, will be used to display the upload progress
 | 
				
			||||||
            options.archiveSizeBytes = archiveFileSize;
 | 
					            options.archiveSizeBytes = archiveFileSize;
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					            core.debug('Reserving Cache');
 | 
				
			||||||
@ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = yield twirpClient.CreateCacheEntry(request);
 | 
					                const response = yield twirpClient.CreateCacheEntry(request);
 | 
				
			||||||
                if (!response.ok) {
 | 
					                if (!response.ok) {
 | 
				
			||||||
                    throw new Error('Response was not ok');
 | 
					                    if (response.message) {
 | 
				
			||||||
 | 
					                        core.warning(`Cache reservation failed: ${response.message}`);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    throw new Error(response.message || 'Response was not ok');
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                signedUploadUrl = response.signedUploadUrl;
 | 
					                signedUploadUrl = response.signedUploadUrl;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
					            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
				
			||||||
            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
					            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
				
			||||||
            if (!finalizeResponse.ok) {
 | 
					            if (!finalizeResponse.ok) {
 | 
				
			||||||
 | 
					                if (finalizeResponse.message) {
 | 
				
			||||||
 | 
					                    throw new FinalizeCacheError(finalizeResponse.message);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
					                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            cacheId = parseInt(finalizeResponse.entryId);
 | 
					            cacheId = parseInt(finalizeResponse.entryId);
 | 
				
			||||||
@ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            else if (typedError.name === ReserveCacheError.name) {
 | 
					            else if (typedError.name === ReserveCacheError.name) {
 | 
				
			||||||
                core.info(`Failed to save: ${typedError.message}`);
 | 
					                core.info(`Failed to save: ${typedError.message}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (typedError.name === FinalizeCacheError.name) {
 | 
				
			||||||
 | 
					                core.warning(typedError.message);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                // Log server errors (5xx) as errors, all other errors as warnings
 | 
					                // Log server errors (5xx) as errors, all other errors as warnings
 | 
				
			||||||
                if (typedError instanceof http_client_1.HttpClientError &&
 | 
					                if (typedError instanceof http_client_1.HttpClientError &&
 | 
				
			||||||
@ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
					        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
					            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, signedUploadUrl: "" };
 | 
					        const message = { ok: false, signedUploadUrl: "", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* string signed_upload_url */ 2:
 | 
					                case /* string signed_upload_url */ 2:
 | 
				
			||||||
                    message.signedUploadUrl = reader.string();
 | 
					                    message.signedUploadUrl = reader.string();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* string signed_upload_url = 2; */
 | 
					        /* string signed_upload_url = 2; */
 | 
				
			||||||
        if (message.signedUploadUrl !== "")
 | 
					        if (message.signedUploadUrl !== "")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
					            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
					        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
 | 
					            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, entryId: "0" };
 | 
					        const message = { ok: false, entryId: "0", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* int64 entry_id */ 2:
 | 
					                case /* int64 entry_id */ 2:
 | 
				
			||||||
                    message.entryId = reader.int64().toString();
 | 
					                    message.entryId = reader.int64().toString();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* int64 entry_id = 2; */
 | 
					        /* int64 entry_id = 2; */
 | 
				
			||||||
        if (message.entryId !== "0")
 | 
					        if (message.entryId !== "0")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
					            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -66524,7 +66550,7 @@ module.exports = require("zlib");
 | 
				
			|||||||
/***/ ((module) => {
 | 
					/***/ ((module) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
					module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										50
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							@ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
					Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
				
			||||||
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
					exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
				
			||||||
const core = __importStar(__nccwpck_require__(7484));
 | 
					const core = __importStar(__nccwpck_require__(7484));
 | 
				
			||||||
const path = __importStar(__nccwpck_require__(6928));
 | 
					const path = __importStar(__nccwpck_require__(6928));
 | 
				
			||||||
const utils = __importStar(__nccwpck_require__(8299));
 | 
					const utils = __importStar(__nccwpck_require__(8299));
 | 
				
			||||||
@ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171));
 | 
				
			|||||||
const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
					const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
				
			||||||
const config_1 = __nccwpck_require__(7606);
 | 
					const config_1 = __nccwpck_require__(7606);
 | 
				
			||||||
const tar_1 = __nccwpck_require__(5321);
 | 
					const tar_1 = __nccwpck_require__(5321);
 | 
				
			||||||
const constants_1 = __nccwpck_require__(8287);
 | 
					 | 
				
			||||||
const http_client_1 = __nccwpck_require__(4844);
 | 
					const http_client_1 = __nccwpck_require__(4844);
 | 
				
			||||||
class ValidationError extends Error {
 | 
					class ValidationError extends Error {
 | 
				
			||||||
    constructor(message) {
 | 
					    constructor(message) {
 | 
				
			||||||
@ -65,6 +64,14 @@ class ReserveCacheError extends Error {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.ReserveCacheError = ReserveCacheError;
 | 
					exports.ReserveCacheError = ReserveCacheError;
 | 
				
			||||||
 | 
					class FinalizeCacheError extends Error {
 | 
				
			||||||
 | 
					    constructor(message) {
 | 
				
			||||||
 | 
					        super(message);
 | 
				
			||||||
 | 
					        this.name = 'FinalizeCacheError';
 | 
				
			||||||
 | 
					        Object.setPrototypeOf(this, FinalizeCacheError.prototype);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.FinalizeCacheError = FinalizeCacheError;
 | 
				
			||||||
function checkPaths(paths) {
 | 
					function checkPaths(paths) {
 | 
				
			||||||
    if (!paths || paths.length === 0) {
 | 
					    if (!paths || paths.length === 0) {
 | 
				
			||||||
        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
					        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
				
			||||||
@ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | 
					 | 
				
			||||||
            if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
 | 
					 | 
				
			||||||
                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            // Set the archive size in the options, will be used to display the upload progress
 | 
					            // Set the archive size in the options, will be used to display the upload progress
 | 
				
			||||||
            options.archiveSizeBytes = archiveFileSize;
 | 
					            options.archiveSizeBytes = archiveFileSize;
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					            core.debug('Reserving Cache');
 | 
				
			||||||
@ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = yield twirpClient.CreateCacheEntry(request);
 | 
					                const response = yield twirpClient.CreateCacheEntry(request);
 | 
				
			||||||
                if (!response.ok) {
 | 
					                if (!response.ok) {
 | 
				
			||||||
                    throw new Error('Response was not ok');
 | 
					                    if (response.message) {
 | 
				
			||||||
 | 
					                        core.warning(`Cache reservation failed: ${response.message}`);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    throw new Error(response.message || 'Response was not ok');
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                signedUploadUrl = response.signedUploadUrl;
 | 
					                signedUploadUrl = response.signedUploadUrl;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
					            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
				
			||||||
            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
					            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
				
			||||||
            if (!finalizeResponse.ok) {
 | 
					            if (!finalizeResponse.ok) {
 | 
				
			||||||
 | 
					                if (finalizeResponse.message) {
 | 
				
			||||||
 | 
					                    throw new FinalizeCacheError(finalizeResponse.message);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
					                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            cacheId = parseInt(finalizeResponse.entryId);
 | 
					            cacheId = parseInt(finalizeResponse.entryId);
 | 
				
			||||||
@ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            else if (typedError.name === ReserveCacheError.name) {
 | 
					            else if (typedError.name === ReserveCacheError.name) {
 | 
				
			||||||
                core.info(`Failed to save: ${typedError.message}`);
 | 
					                core.info(`Failed to save: ${typedError.message}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (typedError.name === FinalizeCacheError.name) {
 | 
				
			||||||
 | 
					                core.warning(typedError.message);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                // Log server errors (5xx) as errors, all other errors as warnings
 | 
					                // Log server errors (5xx) as errors, all other errors as warnings
 | 
				
			||||||
                if (typedError instanceof http_client_1.HttpClientError &&
 | 
					                if (typedError instanceof http_client_1.HttpClientError &&
 | 
				
			||||||
@ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
					        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
					            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, signedUploadUrl: "" };
 | 
					        const message = { ok: false, signedUploadUrl: "", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* string signed_upload_url */ 2:
 | 
					                case /* string signed_upload_url */ 2:
 | 
				
			||||||
                    message.signedUploadUrl = reader.string();
 | 
					                    message.signedUploadUrl = reader.string();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* string signed_upload_url = 2; */
 | 
					        /* string signed_upload_url = 2; */
 | 
				
			||||||
        if (message.signedUploadUrl !== "")
 | 
					        if (message.signedUploadUrl !== "")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
					            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
					        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
 | 
					            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, entryId: "0" };
 | 
					        const message = { ok: false, entryId: "0", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* int64 entry_id */ 2:
 | 
					                case /* int64 entry_id */ 2:
 | 
				
			||||||
                    message.entryId = reader.int64().toString();
 | 
					                    message.entryId = reader.int64().toString();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* int64 entry_id = 2; */
 | 
					        /* int64 entry_id = 2; */
 | 
				
			||||||
        if (message.entryId !== "0")
 | 
					        if (message.entryId !== "0")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
					            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -66537,7 +66563,7 @@ module.exports = require("zlib");
 | 
				
			|||||||
/***/ ((module) => {
 | 
					/***/ ((module) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
					module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										50
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
					Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
				
			||||||
exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
					exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0;
 | 
				
			||||||
const core = __importStar(__nccwpck_require__(7484));
 | 
					const core = __importStar(__nccwpck_require__(7484));
 | 
				
			||||||
const path = __importStar(__nccwpck_require__(6928));
 | 
					const path = __importStar(__nccwpck_require__(6928));
 | 
				
			||||||
const utils = __importStar(__nccwpck_require__(8299));
 | 
					const utils = __importStar(__nccwpck_require__(8299));
 | 
				
			||||||
@ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171));
 | 
				
			|||||||
const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
					const cacheTwirpClient = __importStar(__nccwpck_require__(6819));
 | 
				
			||||||
const config_1 = __nccwpck_require__(7606);
 | 
					const config_1 = __nccwpck_require__(7606);
 | 
				
			||||||
const tar_1 = __nccwpck_require__(5321);
 | 
					const tar_1 = __nccwpck_require__(5321);
 | 
				
			||||||
const constants_1 = __nccwpck_require__(8287);
 | 
					 | 
				
			||||||
const http_client_1 = __nccwpck_require__(4844);
 | 
					const http_client_1 = __nccwpck_require__(4844);
 | 
				
			||||||
class ValidationError extends Error {
 | 
					class ValidationError extends Error {
 | 
				
			||||||
    constructor(message) {
 | 
					    constructor(message) {
 | 
				
			||||||
@ -65,6 +64,14 @@ class ReserveCacheError extends Error {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
exports.ReserveCacheError = ReserveCacheError;
 | 
					exports.ReserveCacheError = ReserveCacheError;
 | 
				
			||||||
 | 
					class FinalizeCacheError extends Error {
 | 
				
			||||||
 | 
					    constructor(message) {
 | 
				
			||||||
 | 
					        super(message);
 | 
				
			||||||
 | 
					        this.name = 'FinalizeCacheError';
 | 
				
			||||||
 | 
					        Object.setPrototypeOf(this, FinalizeCacheError.prototype);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					exports.FinalizeCacheError = FinalizeCacheError;
 | 
				
			||||||
function checkPaths(paths) {
 | 
					function checkPaths(paths) {
 | 
				
			||||||
    if (!paths || paths.length === 0) {
 | 
					    if (!paths || paths.length === 0) {
 | 
				
			||||||
        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
					        throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
 | 
				
			||||||
@ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
					            const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
 | 
				
			||||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
					            core.debug(`File Size: ${archiveFileSize}`);
 | 
				
			||||||
            // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | 
					 | 
				
			||||||
            if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
 | 
					 | 
				
			||||||
                throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            // Set the archive size in the options, will be used to display the upload progress
 | 
					            // Set the archive size in the options, will be used to display the upload progress
 | 
				
			||||||
            options.archiveSizeBytes = archiveFileSize;
 | 
					            options.archiveSizeBytes = archiveFileSize;
 | 
				
			||||||
            core.debug('Reserving Cache');
 | 
					            core.debug('Reserving Cache');
 | 
				
			||||||
@ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const response = yield twirpClient.CreateCacheEntry(request);
 | 
					                const response = yield twirpClient.CreateCacheEntry(request);
 | 
				
			||||||
                if (!response.ok) {
 | 
					                if (!response.ok) {
 | 
				
			||||||
                    throw new Error('Response was not ok');
 | 
					                    if (response.message) {
 | 
				
			||||||
 | 
					                        core.warning(`Cache reservation failed: ${response.message}`);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    throw new Error(response.message || 'Response was not ok');
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                signedUploadUrl = response.signedUploadUrl;
 | 
					                signedUploadUrl = response.signedUploadUrl;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
					            const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
 | 
				
			||||||
            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
					            core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
 | 
				
			||||||
            if (!finalizeResponse.ok) {
 | 
					            if (!finalizeResponse.ok) {
 | 
				
			||||||
 | 
					                if (finalizeResponse.message) {
 | 
				
			||||||
 | 
					                    throw new FinalizeCacheError(finalizeResponse.message);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
					                throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            cacheId = parseInt(finalizeResponse.entryId);
 | 
					            cacheId = parseInt(finalizeResponse.entryId);
 | 
				
			||||||
@ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			|||||||
            else if (typedError.name === ReserveCacheError.name) {
 | 
					            else if (typedError.name === ReserveCacheError.name) {
 | 
				
			||||||
                core.info(`Failed to save: ${typedError.message}`);
 | 
					                core.info(`Failed to save: ${typedError.message}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else if (typedError.name === FinalizeCacheError.name) {
 | 
				
			||||||
 | 
					                core.warning(typedError.message);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            else {
 | 
					            else {
 | 
				
			||||||
                // Log server errors (5xx) as errors, all other errors as warnings
 | 
					                // Log server errors (5xx) as errors, all other errors as warnings
 | 
				
			||||||
                if (typedError instanceof http_client_1.HttpClientError &&
 | 
					                if (typedError instanceof http_client_1.HttpClientError &&
 | 
				
			||||||
@ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
					        super("github.actions.results.api.v1.CreateCacheEntryResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
					            { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, signedUploadUrl: "" };
 | 
					        const message = { ok: false, signedUploadUrl: "", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* string signed_upload_url */ 2:
 | 
					                case /* string signed_upload_url */ 2:
 | 
				
			||||||
                    message.signedUploadUrl = reader.string();
 | 
					                    message.signedUploadUrl = reader.string();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* string signed_upload_url = 2; */
 | 
					        /* string signed_upload_url = 2; */
 | 
				
			||||||
        if (message.signedUploadUrl !== "")
 | 
					        if (message.signedUploadUrl !== "")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
					            writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
    constructor() {
 | 
					    constructor() {
 | 
				
			||||||
        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
					        super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [
 | 
				
			||||||
            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
					            { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
 | 
				
			||||||
            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }
 | 
					            { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
 | 
				
			||||||
 | 
					            { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    create(value) {
 | 
					    create(value) {
 | 
				
			||||||
        const message = { ok: false, entryId: "0" };
 | 
					        const message = { ok: false, entryId: "0", message: "" };
 | 
				
			||||||
        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
					        globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
 | 
				
			||||||
        if (value !== undefined)
 | 
					        if (value !== undefined)
 | 
				
			||||||
            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
					            (0, runtime_3.reflectionMergePartial)(this, message, value);
 | 
				
			||||||
@ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
                case /* int64 entry_id */ 2:
 | 
					                case /* int64 entry_id */ 2:
 | 
				
			||||||
                    message.entryId = reader.int64().toString();
 | 
					                    message.entryId = reader.int64().toString();
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case /* string message */ 3:
 | 
				
			||||||
 | 
					                    message.message = reader.string();
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    let u = options.readUnknownField;
 | 
					                    let u = options.readUnknownField;
 | 
				
			||||||
                    if (u === "throw")
 | 
					                    if (u === "throw")
 | 
				
			||||||
@ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType {
 | 
				
			|||||||
        /* int64 entry_id = 2; */
 | 
					        /* int64 entry_id = 2; */
 | 
				
			||||||
        if (message.entryId !== "0")
 | 
					        if (message.entryId !== "0")
 | 
				
			||||||
            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
					            writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
 | 
				
			||||||
 | 
					        /* string message = 3; */
 | 
				
			||||||
 | 
					        if (message.message !== "")
 | 
				
			||||||
 | 
					            writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
 | 
				
			||||||
        let u = options.writeUnknownFields;
 | 
					        let u = options.writeUnknownFields;
 | 
				
			||||||
        if (u !== false)
 | 
					        if (u !== false)
 | 
				
			||||||
            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
					            (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
 | 
				
			||||||
@ -66537,7 +66563,7 @@ module.exports = require("zlib");
 | 
				
			|||||||
/***/ ((module) => {
 | 
					/***/ ((module) => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
					module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/***/ }),
 | 
					/***/ }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										18
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										18
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,15 +1,15 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "4.2.3",
 | 
					  "version": "4.3.0",
 | 
				
			||||||
  "lockfileVersion": 2,
 | 
					  "lockfileVersion": 2,
 | 
				
			||||||
  "requires": true,
 | 
					  "requires": true,
 | 
				
			||||||
  "packages": {
 | 
					  "packages": {
 | 
				
			||||||
    "": {
 | 
					    "": {
 | 
				
			||||||
      "name": "cache",
 | 
					      "name": "cache",
 | 
				
			||||||
      "version": "4.2.3",
 | 
					      "version": "4.3.0",
 | 
				
			||||||
      "license": "MIT",
 | 
					      "license": "MIT",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@actions/cache": "^4.0.5",
 | 
					        "@actions/cache": "^4.1.0",
 | 
				
			||||||
        "@actions/core": "^1.11.1",
 | 
					        "@actions/core": "^1.11.1",
 | 
				
			||||||
        "@actions/exec": "^1.1.1",
 | 
					        "@actions/exec": "^1.1.1",
 | 
				
			||||||
        "@actions/io": "^1.1.3"
 | 
					        "@actions/io": "^1.1.3"
 | 
				
			||||||
@ -36,9 +36,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@actions/cache": {
 | 
					    "node_modules/@actions/cache": {
 | 
				
			||||||
      "version": "4.0.5",
 | 
					      "version": "4.1.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.5.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.1.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-RjLz1/vvntOfp3FpkY3wB0MjVRbLq7bfQEuQG9UUTKwdtcYmFrKVmuD+9B6ADbzbkSfHM+dM4sMjdr3R4XIkFg==",
 | 
					      "integrity": "sha512-z3Opg+P4Y7baq+g1dODXgdtsvPLSewr3ZKpp3U0HQR1A/vWCoJFS52XSezjdngo4SIOdR5oHtyK3a3Arar+X9A==",
 | 
				
			||||||
      "license": "MIT",
 | 
					      "license": "MIT",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@actions/core": "^1.11.1",
 | 
					        "@actions/core": "^1.11.1",
 | 
				
			||||||
@ -9548,9 +9548,9 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/cache": {
 | 
					    "@actions/cache": {
 | 
				
			||||||
      "version": "4.0.5",
 | 
					      "version": "4.1.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.5.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.1.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-RjLz1/vvntOfp3FpkY3wB0MjVRbLq7bfQEuQG9UUTKwdtcYmFrKVmuD+9B6ADbzbkSfHM+dM4sMjdr3R4XIkFg==",
 | 
					      "integrity": "sha512-z3Opg+P4Y7baq+g1dODXgdtsvPLSewr3ZKpp3U0HQR1A/vWCoJFS52XSezjdngo4SIOdR5oHtyK3a3Arar+X9A==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "@actions/core": "^1.11.1",
 | 
					        "@actions/core": "^1.11.1",
 | 
				
			||||||
        "@actions/exec": "^1.0.1",
 | 
					        "@actions/exec": "^1.0.1",
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "4.2.4",
 | 
					  "version": "4.3.0",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "Cache dependencies and build outputs",
 | 
					  "description": "Cache dependencies and build outputs",
 | 
				
			||||||
  "main": "dist/restore/index.js",
 | 
					  "main": "dist/restore/index.js",
 | 
				
			||||||
@ -23,7 +23,7 @@
 | 
				
			|||||||
  "author": "GitHub",
 | 
					  "author": "GitHub",
 | 
				
			||||||
  "license": "MIT",
 | 
					  "license": "MIT",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@actions/cache": "^4.0.5",
 | 
					    "@actions/cache": "^4.1.0",
 | 
				
			||||||
    "@actions/core": "^1.11.1",
 | 
					    "@actions/core": "^1.11.1",
 | 
				
			||||||
    "@actions/exec": "^1.1.1",
 | 
					    "@actions/exec": "^1.1.1",
 | 
				
			||||||
    "@actions/io": "^1.1.3"
 | 
					    "@actions/io": "^1.1.3"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user