CodeQL: Pull the bundle from codeql-action@v1 rather than main. (#4702)

As github/codeql-action by default uses the bundle from the toolcache,
make sure that that is considered stable.
This commit is contained in:
Cornelius Riemenschneider
2021-12-10 08:26:07 +01:00
committed by GitHub
parent 54bf98dc42
commit 9e30602178
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
source $HELPER_SCRIPTS/install.sh
# Retrieve the name of the CodeQL bundle preferred by the Action (in the format codeql-bundle-YYYYMMDD).
codeql_bundle_name="$(curl -sSL https://raw.githubusercontent.com/github/codeql-action/main/src/defaults.json | jq -r .bundleVersion)"
codeql_bundle_name="$(curl -sSL https://raw.githubusercontent.com/github/codeql-action/v1/src/defaults.json | jq -r .bundleVersion)"
# Convert the bundle name to a version number (0.0.0-YYYYMMDD).
codeql_bundle_version="0.0.0-${codeql_bundle_name##*-}"