Use v2 branch to get CodeQL bundle (#5307)

This commit is contained in:
Edoardo Pirovano
2022-03-30 13:29:42 +01:00
committed by GitHub
parent 63cd495e98
commit e7a6a9a375

View File

@@ -4,7 +4,7 @@
################################################################################
# Retrieve the name of the CodeQL bundle preferred by the Action (in the format codeql-bundle-YYYYMMDD).
$CodeQLBundleName = (Invoke-RestMethod "https://raw.githubusercontent.com/github/codeql-action/v1/src/defaults.json").bundleVersion
$CodeQLBundleName = (Invoke-RestMethod "https://raw.githubusercontent.com/github/codeql-action/v2/src/defaults.json").bundleVersion
# Convert the bundle name to a version number (0.0.0-YYYYMMDD).
$CodeQLBundleVersion = "0.0.0-" + $CodeQLBundleName.split("-")[-1]