mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 09:37:15 +00:00
Merge branch 'main' into fix/205
This commit is contained in:
@@ -26,7 +26,9 @@ export function combineSarifFiles(sarifFiles: string[]): string {
|
||||
if (combinedSarif.version === null) {
|
||||
combinedSarif.version = sarifObject.version;
|
||||
} else if (combinedSarif.version !== sarifObject.version) {
|
||||
throw `Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`;
|
||||
throw new Error(
|
||||
`Different SARIF versions encountered: ${combinedSarif.version} and ${sarifObject.version}`
|
||||
);
|
||||
}
|
||||
|
||||
combinedSarif.runs.push(...sarifObject.runs);
|
||||
|
||||
Reference in New Issue
Block a user