Do not try merging a single SARIF file
This commit is contained in:
parent
3bd271cec3
commit
a0a63a2dd4
3 changed files with 8 additions and 1 deletions
|
|
@ -93,6 +93,10 @@ async function combineSarifFilesUsingCLI(
|
|||
features: Features,
|
||||
logger: Logger,
|
||||
): Promise<SarifFile> {
|
||||
if (sarifFiles.length === 1) {
|
||||
return JSON.parse(fs.readFileSync(sarifFiles[0], "utf8")) as SarifFile;
|
||||
}
|
||||
|
||||
if (!areAllRunsProducedByCodeQL(sarifFiles)) {
|
||||
logger.warning(
|
||||
"Not all SARIF files were produced by CodeQL. Merging files in the action.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue