send action ref and tool version in status reports

This commit is contained in:
Robert 2020-11-11 18:22:12 +00:00
parent acacf9bbd5
commit 80b43ca9d3
18 changed files with 88 additions and 54 deletions

View file

@ -19,9 +19,9 @@ export async function initCodeQL(
toolsDir: string,
mode: util.Mode,
logger: Logger
): Promise<CodeQL> {
): Promise<{ codeql: CodeQL; toolsVersion: string }> {
logger.startGroup("Setup CodeQL tools");
const codeql = await setupCodeQL(
const { codeql, toolsVersion } = await setupCodeQL(
codeqlURL,
githubAuth,
githubUrl,
@ -32,7 +32,7 @@ export async function initCodeQL(
);
await codeql.printVersion();
logger.endGroup();
return codeql;
return { codeql, toolsVersion };
}
export async function initConfig(