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
Chris Gavin committed Nov 17, 2021
1 parent 49fc4c9 commit 823bb21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ inputs:
default: "true"
wait-for-processing:
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
required: false
required: true
default: "false"
token:
default: ${{ github.token }}
matrix:
Expand Down
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
5 changes: 3 additions & 2 deletions 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 @@ -22,7 +22,8 @@ inputs:
required: false
wait-for-processing:
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
required: false
required: true
default: "false"
runs:
using: 'node12'
main: '../lib/upload-sarif-action.js'

0 comments on commit 823bb21

Please sign in to comment.