mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Rebuild
This commit is contained in:
Generated
+26
-7
@@ -26704,7 +26704,7 @@ var require_package = __commonJS({
|
||||
dependencies: {
|
||||
"@actions/artifact": "^5.0.2",
|
||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||
"@actions/cache": "^5.0.2",
|
||||
"@actions/cache": "^5.0.3",
|
||||
"@actions/core": "^2.0.2",
|
||||
"@actions/exec": "^2.0.0",
|
||||
"@actions/github": "^7.0.0",
|
||||
@@ -26739,7 +26739,7 @@ var require_package = __commonJS({
|
||||
"@types/node-forge": "^1.3.14",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@types/sinon": "^21.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.53.1",
|
||||
"@typescript-eslint/parser": "^8.48.0",
|
||||
ava: "^6.4.1",
|
||||
esbuild: "^0.27.2",
|
||||
@@ -26748,7 +26748,7 @@ var require_package = __commonJS({
|
||||
"eslint-plugin-filenames": "^1.3.2",
|
||||
"eslint-plugin-github": "^5.1.8",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-jsdoc": "^62.0.0",
|
||||
"eslint-plugin-jsdoc": "^62.2.0",
|
||||
"eslint-plugin-no-async-foreach": "^0.1.1",
|
||||
glob: "^11.1.0",
|
||||
nock: "^14.0.10",
|
||||
@@ -73827,7 +73827,7 @@ var require_errors2 = __commonJS({
|
||||
"node_modules/@actions/cache/lib/internal/shared/errors.js"(exports2) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||
exports2.UsageError = exports2.NetworkError = exports2.GHESNotSupportedError = exports2.CacheNotFoundError = exports2.InvalidResponseError = exports2.FilesNotFoundError = void 0;
|
||||
exports2.RateLimitError = exports2.UsageError = exports2.NetworkError = exports2.GHESNotSupportedError = exports2.CacheNotFoundError = exports2.InvalidResponseError = exports2.FilesNotFoundError = void 0;
|
||||
var FilesNotFoundError = class extends Error {
|
||||
constructor(files = []) {
|
||||
let message = "No files were found to upload";
|
||||
@@ -73896,6 +73896,13 @@ More info on storage limits: https://docs.github.com/en/billing/managing-billing
|
||||
return false;
|
||||
return msg.includes("insufficient usage");
|
||||
};
|
||||
var RateLimitError = class extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "RateLimitError";
|
||||
}
|
||||
};
|
||||
exports2.RateLimitError = RateLimitError;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -74930,7 +74937,7 @@ var require_package2 = __commonJS({
|
||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||
module2.exports = {
|
||||
name: "@actions/cache",
|
||||
version: "5.0.2",
|
||||
version: "5.0.3",
|
||||
preview: true,
|
||||
description: "Actions cache lib",
|
||||
keywords: [
|
||||
@@ -80351,6 +80358,16 @@ var require_cacheTwirpClient = __commonJS({
|
||||
}
|
||||
errorMessage = `${errorMessage}: ${body.msg}`;
|
||||
}
|
||||
if (statusCode === http_client_1.HttpCodes.TooManyRequests) {
|
||||
const retryAfterHeader = response.message.headers["retry-after"];
|
||||
if (retryAfterHeader) {
|
||||
const parsedSeconds = parseInt(retryAfterHeader, 10);
|
||||
if (!isNaN(parsedSeconds) && parsedSeconds > 0) {
|
||||
(0, core_1.warning)(`You've hit a rate limit, your rate limit will reset in ${parsedSeconds} seconds`);
|
||||
}
|
||||
}
|
||||
throw new errors_1.RateLimitError(`Rate limited: ${errorMessage}`);
|
||||
}
|
||||
} catch (error3) {
|
||||
if (error3 instanceof SyntaxError) {
|
||||
(0, core_1.debug)(`Raw Body: ${rawBody}`);
|
||||
@@ -80358,6 +80375,9 @@ var require_cacheTwirpClient = __commonJS({
|
||||
if (error3 instanceof errors_1.UsageError) {
|
||||
throw error3;
|
||||
}
|
||||
if (error3 instanceof errors_1.RateLimitError) {
|
||||
throw error3;
|
||||
}
|
||||
if (errors_1.NetworkError.isNetworkErrorCode(error3 === null || error3 === void 0 ? void 0 : error3.code)) {
|
||||
throw new errors_1.NetworkError(error3 === null || error3 === void 0 ? void 0 : error3.code);
|
||||
}
|
||||
@@ -80390,8 +80410,7 @@ var require_cacheTwirpClient = __commonJS({
|
||||
http_client_1.HttpCodes.BadGateway,
|
||||
http_client_1.HttpCodes.GatewayTimeout,
|
||||
http_client_1.HttpCodes.InternalServerError,
|
||||
http_client_1.HttpCodes.ServiceUnavailable,
|
||||
http_client_1.HttpCodes.TooManyRequests
|
||||
http_client_1.HttpCodes.ServiceUnavailable
|
||||
];
|
||||
return retryableStatusCodes.includes(statusCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user