Merge branch 'main' into rvermeulen/uri-errors-as-warnings

This commit is contained in:
Remco Vermeulen 2024-09-17 14:09:52 -07:00 committed by GitHub
commit a1a585f2ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 547 additions and 609 deletions

2
lib/upload-lib.js generated
View file

@ -319,7 +319,7 @@ function validateSarifFileSchema(sarifFilePath, logger) {
sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8"));
}
catch (e) {
throw new InvalidSarifUploadError(`Invalid SARIF. JSON syntax error: ${(0, util_1.wrapError)(e).message}`);
throw new InvalidSarifUploadError(`Invalid SARIF. JSON syntax error: ${(0, util_1.getErrorMessage)(e)}`);
}
// eslint-disable-next-line @typescript-eslint/no-require-imports
const schema = require("../src/sarif-schema-2.1.0.json");