mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Mark some more processing errors as invalid SARIF upload requests
This commit is contained in:
5
lib/upload-lib.js
generated
5
lib/upload-lib.js
generated
@@ -383,8 +383,9 @@ function shouldConsiderConfigurationError(processingErrors) {
|
||||
* Returns whether the provided processing errors are the result of an invalid SARIF upload request.
|
||||
*/
|
||||
function shouldConsiderInvalidRequest(processingErrors) {
|
||||
return (processingErrors.length === 1 &&
|
||||
processingErrors[0].startsWith("rejecting SARIF,"));
|
||||
return processingErrors.every((error) => error.startsWith("rejecting SARIF") ||
|
||||
error.startsWith("could not convert rules: invalid security severity value, is not a number") ||
|
||||
/^SARIF URI scheme [^\s]* did not match the checkout URI scheme [^\s]*/.test(error));
|
||||
}
|
||||
/**
|
||||
* Checks the processing result for an unsuccessful execution. Throws if the
|
||||
|
||||
Reference in New Issue
Block a user