Add an option to upload some debugging artifacts

This commit is contained in:
Edoardo Pirovano 2021-10-28 14:15:22 +01:00
parent 4293754ed2
commit bc31f604d3
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
40 changed files with 374 additions and 65 deletions

View file

@ -125,6 +125,11 @@ export interface Config {
* List of packages, separated by language to download before any analysis.
*/
packs: Packs;
/**
* Specifies whether we are debugging mode and should try to produce extra
* output for debugging purposes when possible.
*/
debugMode: boolean;
}
export type Packs = Partial<Record<Language, PackWithVersion[]>>;
@ -813,6 +818,7 @@ export async function getDefaultConfig(
queriesInput: string | undefined,
packsInput: string | undefined,
dbLocation: string | undefined,
debugMode: boolean,
repository: RepositoryNwo,
tempDir: string,
toolCacheDir: string,
@ -864,6 +870,7 @@ export async function getDefaultConfig(
codeQLCmd: codeQL.getPath(),
gitHubVersion,
dbLocation: dbLocationOrDefault(dbLocation, tempDir),
debugMode,
};
}
@ -876,6 +883,7 @@ async function loadConfig(
packsInput: string | undefined,
configFile: string,
dbLocation: string | undefined,
debugMode: boolean,
repository: RepositoryNwo,
tempDir: string,
toolCacheDir: string,
@ -1032,6 +1040,7 @@ async function loadConfig(
codeQLCmd: codeQL.getPath(),
gitHubVersion,
dbLocation: dbLocationOrDefault(dbLocation, tempDir),
debugMode,
};
}
@ -1201,6 +1210,7 @@ export async function initConfig(
packsInput: string | undefined,
configFile: string | undefined,
dbLocation: string | undefined,
debugMode: boolean,
repository: RepositoryNwo,
tempDir: string,
toolCacheDir: string,
@ -1220,6 +1230,7 @@ export async function initConfig(
queriesInput,
packsInput,
dbLocation,
debugMode,
repository,
tempDir,
toolCacheDir,
@ -1236,6 +1247,7 @@ export async function initConfig(
packsInput,
configFile,
dbLocation,
debugMode,
repository,
tempDir,
toolCacheDir,