Don't use getOptionalInput on the runner codepath

This commit is contained in:
David Verdeguer 2021-04-29 08:00:19 +02:00
parent 40fb1f3f00
commit 76f5ada659
3 changed files with 9 additions and 6 deletions

View file

@ -179,6 +179,7 @@ export async function uploadFromActions(
await actionsUtil.getCommitOid(),
await actionsUtil.getRef(),
await actionsUtil.getAnalysisKey(),
actionsUtil.getOptionalInput("category"),
actionsUtil.getRequiredEnvParam("GITHUB_WORKFLOW"),
actionsUtil.getWorkflowRunID(),
actionsUtil.getRequiredInput("checkout_path"),
@ -211,6 +212,7 @@ export async function uploadFromRunner(
undefined,
undefined,
undefined,
undefined,
checkoutPath,
undefined,
gitHubVersion,
@ -352,6 +354,7 @@ async function uploadFiles(
commitOid: string,
ref: string,
analysisKey: string | undefined,
category: string | undefined,
analysisName: string | undefined,
workflowRunID: number | undefined,
checkoutPath: string,
@ -387,7 +390,7 @@ async function uploadFiles(
);
sarifPayload = populateRunAutomationDetails(
sarifPayload,
actionsUtil.getOptionalInput("category"),
category,
analysisKey,
environment
);