diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index 56d68f6e..a13e91b7 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -584,4 +584,9 @@ function Build-GraalVMTable { "Version" = $version "Environment variables" = $envVariables } +} + +function Get-CodeQLVersion { + $codeqlVersion = Run-Command "codeql version --quiet" + return "$codeqlVersion" } \ No newline at end of file diff --git a/images/macos/software-report/SoftwareReport.Generator.ps1 b/images/macos/software-report/SoftwareReport.Generator.ps1 index 199635d4..9533fe3e 100644 --- a/images/macos/software-report/SoftwareReport.Generator.ps1 +++ b/images/macos/software-report/SoftwareReport.Generator.ps1 @@ -159,7 +159,8 @@ $toolsList = @( (Get-AzureDevopsVersion), (Get-AWSCLIVersion), (Get-AWSSAMCLIVersion), - (Get-AWSSessionManagerCLIVersion) + (Get-AWSSessionManagerCLIVersion), + (Get-CodeQLVersion) ) if ($os.IsLessThanMonterey) { diff --git a/images/macos/tests/Common.Tests.ps1 b/images/macos/tests/Common.Tests.ps1 index 7e78b182..6c3f02ed 100644 --- a/images/macos/tests/Common.Tests.ps1 +++ b/images/macos/tests/Common.Tests.ps1 @@ -137,4 +137,10 @@ Describe "VirtualBox" -Skip:($os.IsBigSur) { It "Check kext kernel modules" { kextstat | Out-String | Should -Match "org.virtualbox.kext" } +} + +Describe "codeql" { + It "codeql" { + "codeql version" | Should -ReturnZeroExitCode + } } \ No newline at end of file diff --git a/images/macos/toolsets/toolset-11.json b/images/macos/toolsets/toolset-11.json index 51e7f8d6..682fcc8b 100644 --- a/images/macos/toolsets/toolset-11.json +++ b/images/macos/toolsets/toolset-11.json @@ -228,7 +228,8 @@ "imagemagick" ], "cask_packages": [ - "julia" + "julia", + "codeql" ] }, "gcc": { diff --git a/images/macos/toolsets/toolset-12.json b/images/macos/toolsets/toolset-12.json index 96a5e698..4fa94d71 100644 --- a/images/macos/toolsets/toolset-12.json +++ b/images/macos/toolsets/toolset-12.json @@ -178,7 +178,8 @@ "cask_packages": [ "julia", "vagrant", - "virtualbox" + "virtualbox", + "codeql" ] }, "gcc": {