diff --git a/packages/action/dist/index.cjs b/packages/action/dist/index.cjs index f9f9adb2..0dd87b03 100644 --- a/packages/action/dist/index.cjs +++ b/packages/action/dist/index.cjs @@ -26,9 +26,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge mod )); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/utils.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js var require_utils = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/utils.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toCommandProperties = exports2.toCommandValue = void 0; @@ -58,9 +58,9 @@ var require_utils = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/command.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js var require_command = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/command.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -144,9 +144,9 @@ var require_command = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/file-command.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js var require_file_command = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/file-command.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -177,6 +177,7 @@ var require_file_command = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; + var crypto = __importStar(require("crypto")); var fs = __importStar(require("fs")); var os = __importStar(require("os")); var utils_1 = require_utils(); @@ -3629,11 +3630,11 @@ var require_util2 = __commonJS({ var assert = require("assert"); var { isUint8Array } = require("util/types"); var supportedHashes = []; - var crypto2; + var crypto; try { - crypto2 = require("crypto"); + crypto = require("crypto"); const possibleRelevantHashes = ["sha256", "sha384", "sha512"]; - supportedHashes = crypto2.getHashes().filter((hash) => possibleRelevantHashes.includes(hash)); + supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash)); } catch { } function responseURL(response) { @@ -3910,7 +3911,7 @@ var require_util2 = __commonJS({ } } function bytesMatch(bytes, metadataList) { - if (crypto2 === void 0) { + if (crypto === void 0) { return true; } const parsedMetadata = parseMetadata(metadataList); @@ -3925,7 +3926,7 @@ var require_util2 = __commonJS({ for (const item of metadata) { const algorithm = item.algo; const expectedValue = item.hash; - let actualValue = crypto2.createHash(algorithm).update(bytes).digest("base64"); + let actualValue = crypto.createHash(algorithm).update(bytes).digest("base64"); if (actualValue[actualValue.length - 1] === "=") { if (actualValue[actualValue.length - 2] === "=") { actualValue = actualValue.slice(0, -2); @@ -16317,9 +16318,9 @@ var require_connection = __commonJS({ channels.open = diagnosticsChannel.channel("undici:websocket:open"); channels.close = diagnosticsChannel.channel("undici:websocket:close"); channels.socketError = diagnosticsChannel.channel("undici:websocket:socket_error"); - var crypto2; + var crypto; try { - crypto2 = require("crypto"); + crypto = require("crypto"); } catch { } function establishWebSocketConnection(url, protocols, ws, onEstablish, options) { @@ -16338,7 +16339,7 @@ var require_connection = __commonJS({ const headersList = new Headers(options.headers)[kHeadersList]; request.headersList = headersList; } - const keyValue = crypto2.randomBytes(16).toString("base64"); + const keyValue = crypto.randomBytes(16).toString("base64"); request.headersList.append("sec-websocket-key", keyValue); request.headersList.append("sec-websocket-version", "13"); for (const protocol of protocols) { @@ -16367,7 +16368,7 @@ var require_connection = __commonJS({ return; } const secWSAccept = response.headersList.get("Sec-WebSocket-Accept"); - const digest = crypto2.createHash("sha1").update(keyValue + uid).digest("base64"); + const digest = crypto.createHash("sha1").update(keyValue + uid).digest("base64"); if (secWSAccept !== digest) { failWebsocketConnection(ws, "Incorrect hash received in Sec-WebSocket-Accept header."); return; @@ -16447,9 +16448,9 @@ var require_frame = __commonJS({ "../../node_modules/.pnpm/undici@5.28.4/node_modules/undici/lib/websocket/frame.js"(exports2, module2) { "use strict"; var { maxUnsigned16Bit } = require_constants5(); - var crypto2; + var crypto; try { - crypto2 = require("crypto"); + crypto = require("crypto"); } catch { } var WebsocketFrameSend = class { @@ -16458,7 +16459,7 @@ var require_frame = __commonJS({ */ constructor(data) { this.frameData = data; - this.maskKey = crypto2.randomBytes(4); + this.maskKey = crypto.randomBytes(4); } createFrame(opcode) { const bodyLength = this.frameData?.byteLength ?? 0; @@ -18002,9 +18003,9 @@ var require_auth = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/oidc-utils.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js var require_oidc_utils = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/oidc-utils.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/oidc-utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { @@ -18100,9 +18101,9 @@ var require_oidc_utils = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/summary.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js var require_summary = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/summary.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/summary.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { @@ -18394,9 +18395,9 @@ var require_summary = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/path-utils.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js var require_path_utils = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/path-utils.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -19455,9 +19456,9 @@ var require_exec = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/platform.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js var require_platform = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/platform.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -19574,9 +19575,9 @@ var require_platform = __commonJS({ } }); -// ../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/core.js +// ../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js var require_core = __commonJS({ - "../../node_modules/.pnpm/@actions+core@1.11.0/node_modules/@actions/core/lib/core.js"(exports2) { + "../../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; @@ -26035,14 +26036,14 @@ var unfurl = async (data, ...optional4) => { return Object.fromEntries(result); }; -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/action/action.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/action/action.js var import_core = __toESM(require_core(), 1); var import_github = __toESM(require_github(), 1); -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/utils/limitStr.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/utils/limitStr.js var limitStr = (str, num) => str.length > num ? `${str.substring(0, num)}...` : str; -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/utils/errorLogging.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/utils/errorLogging.js var errorLogging = async ({ octokit, repo, owner, error: error3, info: info6 }) => { try { const errorTitle = `Octoflare Error: ${limitStr(error3.message, 64)}`; @@ -26089,7 +26090,7 @@ ${error3.stack} } }; -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/utils/updateChecks.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/utils/updateChecks.js var updateChecks = ({ kit, check_run_id, owner, repo, conclusion, output, details_url, status }) => kit.rest.checks.update({ check_run_id, owner, @@ -26105,7 +26106,7 @@ var updateChecks = ({ kit, check_run_id, owner, repo, conclusion, output, detail } : void 0 }); -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/action/action.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/action/action.js var action = async (handler, options) => { const { skipTokenRevocation } = options ?? {}; const payloadStr = import_core.default.getInput("payload", { required: true }); @@ -26182,7 +26183,7 @@ Cause on Action } }; -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/re-exports/actions/core.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/re-exports/actions/core.js var core_exports = {}; __reExport(core_exports, __toESM(require_core(), 1)); @@ -27239,7 +27240,7 @@ var apps = { assign }; -// ../../node_modules/.pnpm/octoflare@0.25.24/node_modules/octoflare/dist/re-exports/actions/github.js +// ../../node_modules/.pnpm/octoflare@0.25.25/node_modules/octoflare/dist/re-exports/actions/github.js var github_exports = {}; __reExport(github_exports, __toESM(require_github(), 1));