Use options object instead of boolean for mergeResults
This commit is contained in:
parent
e20c273295
commit
6ac57535de
6 changed files with 13 additions and 7 deletions
4
lib/upload-lib.js
generated
4
lib/upload-lib.js
generated
|
|
@ -119,7 +119,9 @@ async function combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, lo
|
|||
fs.mkdirSync(baseTempDir, { recursive: true });
|
||||
const outputDirectory = fs.mkdtempSync(path.resolve(baseTempDir, "output-"));
|
||||
const outputFile = path.resolve(outputDirectory, "combined-sarif.sarif");
|
||||
await codeQL.mergeResults(sarifFiles, outputFile, true);
|
||||
await codeQL.mergeResults(sarifFiles, outputFile, {
|
||||
mergeRunsFromEqualCategory: true,
|
||||
});
|
||||
return JSON.parse(fs.readFileSync(outputFile, "utf8"));
|
||||
}
|
||||
// Populates the run.automationDetails.id field using the analysis_key and environment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue