Request meta endpoint at the start of execution
This commit is contained in:
parent
8d18e347a7
commit
81a21bfa1e
46 changed files with 348 additions and 259 deletions
|
|
@ -14,7 +14,9 @@ import { getRunnerLogger } from "./logging";
|
|||
import { parseRepositoryNwo } from "./repository";
|
||||
import * as upload_lib from "./upload-lib";
|
||||
import {
|
||||
checkGHESVersionInRange,
|
||||
getAddSnippetsFlag,
|
||||
getGHESVersion,
|
||||
getMemoryFlag,
|
||||
getThreadsFlag,
|
||||
parseGithubUrl,
|
||||
|
|
@ -151,6 +153,11 @@ program
|
|||
url: parseGithubUrl(cmd.githubUrl),
|
||||
};
|
||||
|
||||
const ghesVersion = await getGHESVersion(apiDetails);
|
||||
if (ghesVersion !== undefined) {
|
||||
checkGHESVersionInRange(ghesVersion, "runner", logger);
|
||||
}
|
||||
|
||||
let codeql: CodeQL;
|
||||
if (cmd.codeqlPath !== undefined) {
|
||||
codeql = getCodeQL(cmd.codeqlPath);
|
||||
|
|
@ -176,8 +183,8 @@ program
|
|||
toolsDir,
|
||||
codeql,
|
||||
cmd.checkoutPath || process.cwd(),
|
||||
ghesVersion,
|
||||
apiDetails,
|
||||
"runner",
|
||||
logger
|
||||
);
|
||||
|
||||
|
|
@ -440,6 +447,7 @@ program
|
|||
url: parseGithubUrl(cmd.githubUrl),
|
||||
};
|
||||
try {
|
||||
const ghesVersion = await getGHESVersion(apiDetails);
|
||||
await upload_lib.upload(
|
||||
cmd.sarifFile,
|
||||
parseRepositoryNwo(cmd.repository),
|
||||
|
|
@ -450,6 +458,7 @@ program
|
|||
undefined,
|
||||
cmd.checkoutPath || process.cwd(),
|
||||
undefined,
|
||||
ghesVersion,
|
||||
apiDetails,
|
||||
"runner",
|
||||
logger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue