mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
Consider SyntaxErrors configuration errors
This commit is contained in:
@@ -207,7 +207,10 @@ export async function uploadFromActions(
|
||||
logger,
|
||||
);
|
||||
} catch (e) {
|
||||
if (e instanceof InvalidRequestError && isThirdPartyUpload) {
|
||||
if (
|
||||
(e instanceof InvalidRequestError || e instanceof SyntaxError) &&
|
||||
isThirdPartyUpload
|
||||
) {
|
||||
throw new ConfigurationError(e.message);
|
||||
}
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user