mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Only echo command if we are streaming the stdout
This commit is contained in:
@@ -527,7 +527,9 @@ export async function runTool(
|
||||
): Promise<string> {
|
||||
let stdout = "";
|
||||
let stderr = "";
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
if (!opts.noStreamStdout) {
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
}
|
||||
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
||||
ignoreReturnCode: true,
|
||||
listeners: {
|
||||
|
||||
@@ -557,9 +557,9 @@ export const downloadCodeQL = async function (
|
||||
);
|
||||
|
||||
logger.info(
|
||||
`Added CodeQL bundle to the tool cache (${
|
||||
performance.now() - toolcacheStart
|
||||
} ms).`,
|
||||
`Added CodeQL bundle to the tool cache (${Math.round(
|
||||
performance.now() - toolcacheStart,
|
||||
)} ms).`,
|
||||
);
|
||||
|
||||
// Defensive check: we expect `cacheDir` to copy the bundle to a new location.
|
||||
|
||||
Reference in New Issue
Block a user