mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix github hostname check
This commit is contained in:
@@ -35,7 +35,7 @@ export const getGitHubInstanceApiUrl = async (config: {
|
|||||||
}) => {
|
}) => {
|
||||||
const host = config.credentials.host || "github.com";
|
const host = config.credentials.host || "github.com";
|
||||||
|
|
||||||
await blockLocalAndPrivateIpAddresses(host);
|
await blockLocalAndPrivateIpAddresses(`https://${host}`);
|
||||||
|
|
||||||
let apiBase: string;
|
let apiBase: string;
|
||||||
if (config.credentials.instanceType === "server") {
|
if (config.credentials.instanceType === "server") {
|
||||||
|
|||||||
Reference in New Issue
Block a user