mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
[macOS] Don't show CodeQl in Catalina's sw report (#6139)
This commit is contained in:
@@ -159,10 +159,15 @@ $toolsList = @(
|
||||
(Get-AzureDevopsVersion),
|
||||
(Get-AWSCLIVersion),
|
||||
(Get-AWSSAMCLIVersion),
|
||||
(Get-AWSSessionManagerCLIVersion),
|
||||
(Get-CodeQLBundleVersion)
|
||||
(Get-AWSSessionManagerCLIVersion)
|
||||
)
|
||||
|
||||
if (-not $os.IsCatalina) {
|
||||
$toolsList += @(
|
||||
(Get-CodeQLBundleVersion)
|
||||
)
|
||||
}
|
||||
|
||||
if ($os.IsLessThanMonterey) {
|
||||
$toolsList += @(
|
||||
(Get-AliyunCLIVersion)
|
||||
|
||||
@@ -139,13 +139,13 @@ Describe "VirtualBox" -Skip:($os.IsBigSur) {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "CodeQL" {
|
||||
Describe "CodeQL" -Skip:($os.IsCatalina) {
|
||||
It "codeql" {
|
||||
$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"
|
||||
"$CodeQLPath version --quiet" | Should -ReturnZeroExitCode
|
||||
|
||||
|
||||
$CodeQLPacksPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "qlpacks"
|
||||
$CodeQLPacksPath | Should -Exist
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user