mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 04:30:14 +08:00
Use the API URL from the environment if it is present.
This commit is contained in:
@@ -202,6 +202,7 @@ program
|
||||
auth,
|
||||
externalRepoAuth: auth,
|
||||
url: parseGitHubUrl(cmd.githubUrl),
|
||||
apiURL: undefined,
|
||||
};
|
||||
|
||||
const gitHubVersion = await getGitHubVersion(apiDetails);
|
||||
@@ -475,6 +476,7 @@ program
|
||||
const apiDetails = {
|
||||
auth,
|
||||
url: parseGitHubUrl(cmd.githubUrl),
|
||||
apiURL: undefined,
|
||||
};
|
||||
|
||||
const outputDir =
|
||||
@@ -587,6 +589,7 @@ program
|
||||
const apiDetails = {
|
||||
auth,
|
||||
url: parseGitHubUrl(cmd.githubUrl),
|
||||
apiURL: undefined,
|
||||
};
|
||||
try {
|
||||
const gitHubVersion = await getGitHubVersion(apiDetails);
|
||||
|
||||
Reference in New Issue
Block a user