Skip to content

Commit

Permalink
Add a default value for wait-for-processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgavin committed Nov 17, 2021
1 parent 49fc4c9 commit c6eef00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/upload-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export async function uploadFromActions(
actionsUtil.getWorkflowRunID(),
actionsUtil.getRequiredInput("checkout_path"),
actionsUtil.getRequiredInput("matrix"),
actionsUtil.getOptionalInput("wait-for-processing") === "true",
actionsUtil.getRequiredInput("wait-for-processing") === "true",
gitHubVersion,
apiDetails,
logger
Expand Down
3 changes: 2 additions & 1 deletion upload-sarif/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: |
The SARIF file or directory of SARIF files to be uploaded to GitHub code scanning.
See https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#uploading-a-code-scanning-analysis-with-github-actions
for information on the maximum number of results and maximum file size supported by code scanning.
for information on the maximum number of results and maximum file size supported by code scanning.
required: false
default: '../results'
checkout_path:
Expand All @@ -23,6 +23,7 @@ inputs:
wait-for-processing:
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
required: false
default: "false"
runs:
using: 'node12'
main: '../lib/upload-sarif-action.js'

0 comments on commit c6eef00

Please sign in to comment.