mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +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-AzureDevopsVersion),
|
||||||
(Get-AWSCLIVersion),
|
(Get-AWSCLIVersion),
|
||||||
(Get-AWSSAMCLIVersion),
|
(Get-AWSSAMCLIVersion),
|
||||||
(Get-AWSSessionManagerCLIVersion),
|
(Get-AWSSessionManagerCLIVersion)
|
||||||
(Get-CodeQLBundleVersion)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (-not $os.IsCatalina) {
|
||||||
|
$toolsList += @(
|
||||||
|
(Get-CodeQLBundleVersion)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if ($os.IsLessThanMonterey) {
|
if ($os.IsLessThanMonterey) {
|
||||||
$toolsList += @(
|
$toolsList += @(
|
||||||
(Get-AliyunCLIVersion)
|
(Get-AliyunCLIVersion)
|
||||||
|
|||||||
@@ -139,13 +139,13 @@ Describe "VirtualBox" -Skip:($os.IsBigSur) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "CodeQL" {
|
Describe "CodeQL" -Skip:($os.IsCatalina) {
|
||||||
It "codeql" {
|
It "codeql" {
|
||||||
$CodeQLVersionWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
$CodeQLVersionWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
||||||
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionWildcard | Select-Object -First 1 -Expand FullName
|
$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 = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql"
|
||||||
"$CodeQLPath version --quiet" | Should -ReturnZeroExitCode
|
"$CodeQLPath version --quiet" | Should -ReturnZeroExitCode
|
||||||
|
|
||||||
$CodeQLPacksPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "qlpacks"
|
$CodeQLPacksPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "qlpacks"
|
||||||
$CodeQLPacksPath | Should -Exist
|
$CodeQLPacksPath | Should -Exist
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user