Don't use getOptionalInput on the runner codepath
This commit is contained in:
parent
40fb1f3f00
commit
76f5ada659
3 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue