diff --git a/dist/index.js b/dist/index.js index 1c3e3ae..950307b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1882,6 +1882,7 @@ class Context { this.action = process.env.GITHUB_ACTION; this.actor = process.env.GITHUB_ACTOR; this.job = process.env.GITHUB_JOB; + this.runAttempt = parseInt(process.env.GITHUB_RUN_ATTEMPT, 10); this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`; @@ -36588,7 +36589,7 @@ module.exports = parseParams /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -/*! Axios v1.12.0 Copyright (c) 2025 Matt Zabriskie and contributors */ +/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */ const FormData$1 = __nccwpck_require__(6454); @@ -36971,10 +36972,8 @@ function merge(/* obj1, obj2, obj3, ... */) { result[targetKey] = merge({}, val); } else if (isArray(val)) { result[targetKey] = val.slice(); - } else { - if (!skipUndefined || !isUndefined(val)) { - result[targetKey] = val; - } + } else if (!skipUndefined || !isUndefined(val)) { + result[targetKey] = val; } }; @@ -38742,7 +38741,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) { return requestedURL; } -const VERSION = "1.12.0"; +const VERSION = "1.12.2"; function parseProtocol(url) { const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); @@ -40522,9 +40521,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024; const {isFunction} = utils$1; -const globalFetchAPI = (({fetch, Request, Response}) => ({ - fetch, Request, Response - }))(utils$1.global); +const globalFetchAPI = (({Request, Response}) => ({ + Request, Response +}))(utils$1.global); const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 @@ -40540,8 +40539,12 @@ const test = (fn, ...args) => { }; const factory = (env) => { - const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env); - const isFetchSupported = isFunction(fetch); + env = utils$1.merge.call({ + skipUndefined: true + }, globalFetchAPI, env); + + const {fetch: envFetch, Request, Response} = env; + const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function'; const isRequestSupported = isFunction(Request); const isResponseSupported = isFunction(Response); @@ -40644,6 +40647,8 @@ const factory = (env) => { fetchOptions } = resolveConfig(config); + let _fetch = envFetch || fetch; + responseType = responseType ? (responseType + '').toLowerCase() : 'text'; let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout); @@ -40703,7 +40708,7 @@ const factory = (env) => { request = isRequestSupported && new Request(url, resolvedOptions); - let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions)); + let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions)); const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response'); @@ -40766,12 +40771,8 @@ const factory = (env) => { const seedCache = new Map(); const getFetch = (config) => { - let env = utils$1.merge.call({ - skipUndefined: true - }, globalFetchAPI, config ? config.env : null); - + let env = config ? config.env : {}; const {fetch, Request, Response} = env; - const seeds = [ Request, Response, fetch ]; @@ -41196,8 +41197,6 @@ class Axios { let newConfig = config; - i = 0; - while (i < len) { const onFulfilled = requestInterceptorChain[i++]; const onRejected = requestInterceptorChain[i++]; diff --git a/package-lock.json b/package-lock.json index 535179d..fe2b57c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "license": "MIT", "dependencies": { "@actions/core": "^1.11.1", - "@actions/github": "^6.0.0", - "axios": "^1.12.0" + "@actions/github": "^6.0.1", + "axios": "^1.12.2" }, "devDependencies": { "@babel/core": "^7.28.4", @@ -53,15 +53,18 @@ } }, "node_modules/@actions/github": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz", - "integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.1.tgz", + "integrity": "sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==", "license": "MIT", "dependencies": { "@actions/http-client": "^2.2.0", "@octokit/core": "^5.0.1", - "@octokit/plugin-paginate-rest": "^9.0.0", - "@octokit/plugin-rest-endpoint-methods": "^10.0.0" + "@octokit/plugin-paginate-rest": "^9.2.2", + "@octokit/plugin-rest-endpoint-methods": "^10.4.0", + "@octokit/request": "^8.4.1", + "@octokit/request-error": "^5.1.1", + "undici": "^5.28.5" } }, "node_modules/@actions/http-client": { @@ -3499,9 +3502,9 @@ } }, "node_modules/axios": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.0.tgz", - "integrity": "sha512-oXTDccv8PcfjZmPGlWsPSwtOJCZ/b6W5jAMCNcfwJbCzDckwG0jrYJFaWH1yvivfCXjVzV/SPDEhMB3Q+DSurg==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", + "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", diff --git a/package.json b/package.json index a0805cb..b7dd5d0 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ }, "dependencies": { "@actions/core": "^1.11.1", - "@actions/github": "^6.0.0", - "axios": "^1.12.0" + "@actions/github": "^6.0.1", + "axios": "^1.12.2" }, "devDependencies": { "@babel/core": "^7.28.4",