mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 00:00:20 +08:00
Pass build mode to database init when set
This commit is contained in:
4
lib/codeql.js
generated
4
lib/codeql.js
generated
@@ -298,6 +298,10 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
if (externalRepositoryToken) {
|
||||
extraArgs.push("--external-repository-token-stdin");
|
||||
}
|
||||
if (config.buildMode !== undefined &&
|
||||
(await this.supportsFeature(tools_features_1.ToolsFeature.BuildModeOption))) {
|
||||
extraArgs.push(`--build-mode=${config.buildMode}`);
|
||||
}
|
||||
if (qlconfigFile !== undefined &&
|
||||
(await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG))) {
|
||||
extraArgs.push(`--qlconfig-file=${qlconfigFile}`);
|
||||
|
||||
Reference in New Issue
Block a user