This commit is contained in:
github-actions[bot] 2025-05-14 14:23:08 +00:00
parent 15f19ac220
commit bacf5fe7c2
2 changed files with 3 additions and 3 deletions

4
lib/upload-lib.js generated
View file

@ -333,8 +333,8 @@ function readSarifFile(sarifFilePath) {
throw new InvalidSarifUploadError(`Invalid SARIF. JSON syntax error: ${(0, util_1.getErrorMessage)(e)}`);
}
}
// Validates that the given file path refers to a valid SARIF file.
// Throws an error if the file is invalid.
// Validates the given SARIF object and throws an error if the SARIF object is invalid.
// The file path is only used in error messages to improve clarity.
function validateSarifFileSchema(sarif, sarifFilePath, logger) {
if (areAllRunsProducedByCodeQL([sarif]) &&
// We want to validate CodeQL SARIF in testing environments.

File diff suppressed because one or more lines are too long