Adds ref and SHA as inputs, and sarif-id as output

This commit is contained in:
Alex Croteau
2022-01-24 14:14:01 -05:00
parent e9aa2c6f62
commit 980fd4ed38
7 changed files with 51 additions and 6 deletions

View File

@@ -13,6 +13,12 @@ inputs:
description: "The path at which the analyzed repository was checked out. Used to relativize any absolute paths in the uploaded SARIF file."
required: false
default: ${{ github.workspace }}
ref:
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable."
required: false
sha:
description: "The hash of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable."
required: false
token:
default: ${{ github.token }}
matrix:
@@ -24,6 +30,9 @@ inputs:
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
required: true
default: "false"
outputs:
sarif-id:
description: The ID of the uploaded sarif file.
runs:
using: 'node12'
main: '../lib/upload-sarif-action.js'