[macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12 (#6068)

* [macOS] CodeQL Action Bundle added to macOS 11 and 12 images

* [macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12

* [macOS] Added CodeQL Action Bundle to macOS 11 and macOS 12
This commit is contained in:
Erik Bershel
2022-08-15 19:36:32 +02:00
committed by GitHub
parent b135fb8a59
commit c25ce452cb
8 changed files with 50 additions and 5 deletions

View File

@@ -584,4 +584,12 @@ function Build-GraalVMTable {
"Version" = $version
"Environment variables" = $envVariables
}
}
function Get-CodeQLBundleVersion {
$CodeQLVersionWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionWildcard | Select-Object -First 1 -Expand FullName
$CodeQLPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql"
$CodeQLVersion = & $CodeQLPath version --quiet
return "CodeQL Action Bundle $CodeQLVersion"
}