Always make requests against api.github.com

This commit is contained in:
Kevin Stillhammer 2025-02-28 16:27:46 +01:00
parent 58765bf77f
commit 688d12e3be
No known key found for this signature in database
3 changed files with 3 additions and 13 deletions

5
dist/setup/index.js generated vendored
View file

@ -122822,7 +122822,7 @@ const plugin_paginate_rest_1 = __nccwpck_require__(93779);
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(49210); const plugin_rest_endpoint_methods_1 = __nccwpck_require__(49210);
const undici_1 = __nccwpck_require__(46752); const undici_1 = __nccwpck_require__(46752);
const DEFAULTS = { const DEFAULTS = {
baseUrl: getApiBaseUrl(), baseUrl: "https://api.github.com",
userAgent: "setup-uv", userAgent: "setup-uv",
}; };
function getProxyAgent() { function getProxyAgent() {
@ -122851,9 +122851,6 @@ exports.Octokit = core_1.Octokit.plugin(plugin_paginate_rest_1.paginateRest, plu
}, },
}; };
}); });
function getApiBaseUrl() {
return process.env.GITHUB_API_URL || "https://api.github.com";
}
/***/ }), /***/ }),

View file

@ -58103,7 +58103,7 @@ const plugin_paginate_rest_1 = __nccwpck_require__(3779);
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(9210); const plugin_rest_endpoint_methods_1 = __nccwpck_require__(9210);
const undici_1 = __nccwpck_require__(6752); const undici_1 = __nccwpck_require__(6752);
const DEFAULTS = { const DEFAULTS = {
baseUrl: getApiBaseUrl(), baseUrl: "https://api.github.com",
userAgent: "setup-uv", userAgent: "setup-uv",
}; };
function getProxyAgent() { function getProxyAgent() {
@ -58132,9 +58132,6 @@ exports.Octokit = core_1.Octokit.plugin(plugin_paginate_rest_1.paginateRest, plu
}, },
}; };
}); });
function getApiBaseUrl() {
return process.env.GITHUB_API_URL || "https://api.github.com";
}
/***/ }), /***/ }),

View file

@ -13,7 +13,7 @@ import { fetch as undiciFetch, ProxyAgent, type RequestInit } from "undici";
export type { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; export type { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods";
const DEFAULTS = { const DEFAULTS = {
baseUrl: getApiBaseUrl(), baseUrl: "https://api.github.com",
userAgent: "setup-uv", userAgent: "setup-uv",
}; };
@ -56,7 +56,3 @@ export const Octokit: typeof Core &
); );
export type Octokit = InstanceType<typeof Octokit>; export type Octokit = InstanceType<typeof Octokit>;
function getApiBaseUrl(): string {
return process.env.GITHUB_API_URL || "https://api.github.com";
}