mirror of
https://github.com/github/codeql-action.git
synced 2025-12-15 20:09:17 +08:00
Improve logging
This commit is contained in:
4
lib/codeql.js
generated
4
lib/codeql.js
generated
@@ -241,7 +241,9 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
async getVersion() {
|
||||
let result = util.getCachedCodeQlVersion();
|
||||
if (result === undefined) {
|
||||
const output = await runCli(cmd, ["version", "--format=json"]);
|
||||
const output = await runCli(cmd, ["version", "--format=json"], {
|
||||
noStreamStdout: true,
|
||||
});
|
||||
try {
|
||||
result = JSON.parse(output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user