mirror of
https://github.com/github/codeql-action.git
synced 2026-05-21 06:50:05 +00:00
Pass build mode to database init when set
This commit is contained in:
@@ -597,6 +597,12 @@ export async function getCodeQLForCmd(
|
||||
extraArgs.push("--external-repository-token-stdin");
|
||||
}
|
||||
|
||||
if (
|
||||
config.buildMode !== undefined &&
|
||||
(await this.supportsFeature(ToolsFeature.BuildModeOption))
|
||||
) {
|
||||
extraArgs.push(`--build-mode=${config.buildMode}`);
|
||||
}
|
||||
if (
|
||||
qlconfigFile !== undefined &&
|
||||
(await util.codeQlVersionAbove(this, CODEQL_VERSION_INIT_WITH_QLCONFIG))
|
||||
|
||||
Reference in New Issue
Block a user