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

@ -45,6 +45,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
category:
description: String used by Code Scanning for matching the analyses
required: false
@ -63,6 +69,8 @@ inputs:
outputs:
db-locations:
description: A map from language to absolute path for each database created by CodeQL.
sarif-id:
description: The ID of the uploaded sarif file.
runs:
using: "node12"
main: "../lib/analyze-action.js"