Merge pull request #1833 from github/henrymercer/print-commands
Log commands manually before executing them
This commit is contained in:
commit
2ec74e3c0e
4 changed files with 4 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
|||
|
||||
- Log a warning if the amount of available disk space runs low during a code scanning run. [#1825](https://github.com/github/codeql-action/pull/1825)
|
||||
- When downloading CodeQL bundle version 2.13.4 and later, cache these bundles in the Actions tool cache using a simpler version number. [#1832](https://github.com/github/codeql-action/pull/1832)
|
||||
- Fix an issue that first appeared in CodeQL Action v2.21.2 that prevented CodeQL invocations from being logged. [#1833](https://github.com/github/codeql-action/pull/1833)
|
||||
|
||||
## 2.21.3 - 08 Aug 2023
|
||||
|
||||
|
|
|
|||
1
lib/codeql.js
generated
1
lib/codeql.js
generated
|
|
@ -729,6 +729,7 @@ const maxErrorSize = 20000;
|
|||
async function runTool(cmd, args = [], opts = {}) {
|
||||
let output = "";
|
||||
let error = "";
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
||||
ignoreReturnCode: true,
|
||||
listeners: {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1162,6 +1162,7 @@ async function runTool(
|
|||
) {
|
||||
let output = "";
|
||||
let error = "";
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
||||
ignoreReturnCode: true,
|
||||
listeners: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue