mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Use v2 branch to get CodeQL bundle (#5307)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user