mirror of
https://github.com/github/codeql-action
synced 2026-05-31 00:00:46 +03:00
Consider SyntaxErrors configuration errors
This commit is contained in:
Generated
+2
-1
@@ -162,7 +162,8 @@ async function uploadFromActions(sarifPath, checkoutPath, category, logger, { is
|
||||
return await uploadFiles(getSarifFilePaths(sarifPath), (0, repository_1.parseRepositoryNwo)(util.getRequiredEnvParam("GITHUB_REPOSITORY")), await actionsUtil.getCommitOid(checkoutPath), await actionsUtil.getRef(), await api.getAnalysisKey(), category, util.getRequiredEnvParam("GITHUB_WORKFLOW"), actionsUtil.getWorkflowRunID(), actionsUtil.getWorkflowRunAttempt(), checkoutPath, actionsUtil.getRequiredInput("matrix"), logger);
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof InvalidRequestError && isThirdPartyUpload) {
|
||||
if ((e instanceof InvalidRequestError || e instanceof SyntaxError) &&
|
||||
isThirdPartyUpload) {
|
||||
throw new util_1.ConfigurationError(e.message);
|
||||
}
|
||||
throw e;
|
||||
|
||||
File diff suppressed because one or more lines are too long
+4
-1
@@ -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