mirror of
https://github.com/github/codeql-action.git
synced 2026-01-03 13:10:06 +08:00
Avoid passing an undefined qlconfig arg
This commit is contained in:
3
lib/codeql.js
generated
3
lib/codeql.js
generated
@@ -335,7 +335,8 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
extraArgs.push("--external-repository-token-stdin");
|
||||
}
|
||||
}
|
||||
if (await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG)) {
|
||||
if (qlconfigFile !== undefined &&
|
||||
(await util.codeQlVersionAbove(this, exports.CODEQL_VERSION_INIT_WITH_QLCONFIG))) {
|
||||
extraArgs.push(`--qlconfig=${qlconfigFile}`);
|
||||
}
|
||||
await runTool(cmd, [
|
||||
|
||||
Reference in New Issue
Block a user