PR Checks: Test codeql-bundle.tar.gz (#1822)

This commit is contained in:
Angela P Wen 2023-08-03 08:38:21 -07:00 committed by GitHub
parent a98b9bd46b
commit 1f63aba653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 187 additions and 2 deletions

View file

@ -4,6 +4,10 @@ inputs:
version:
description: "The version of the CodeQL CLI to use. Can be 'latest', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'."
required: true
use-all-platform-bundle:
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
default: 'false'
required: false
outputs:
tools-url:
description: "The value that should be passed as the 'tools' input of the 'init' step."
@ -24,7 +28,9 @@ runs:
run: |
set -e # Fail this Action if `gh release list` fails.
if [[ "$RUNNER_OS" == "Linux" ]]; then
if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then
artifact_name="codeql-bundle.tar.gz"
elif [[ "$RUNNER_OS" == "Linux" ]]; then
artifact_name="codeql-bundle-linux64.tar.gz"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
artifact_name="codeql-bundle-osx64.tar.gz"