mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Document the CodeQL version that is installed.
This commit is contained in:
@@ -77,6 +77,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-BazelVersion),
|
||||
(Get-BazeliskVersion),
|
||||
(Get-CMakeVersion),
|
||||
(Get-CodeQLBundleVersion),
|
||||
(Get-RVersion),
|
||||
(Get-DockerVersion),
|
||||
(Get-DockerComposeVersion),
|
||||
|
||||
@@ -30,6 +30,14 @@ function Get-CMakeVersion {
|
||||
return "CMake $cmakeVersion"
|
||||
}
|
||||
|
||||
function Get-CodeQLBundleVersion {
|
||||
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "codeql" | Join-Path -ChildPath "*"
|
||||
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
|
||||
$CodeQLPath = Join-Path $CodeQLVersionPath -ChildPath "x64" | Join-Path -ChildPath "codeql" | Join-Path -ChildPath "codeql.exe"
|
||||
$CodeQLVersion = $($CodeQLPath version --quiet)
|
||||
return "CodeQL Action Bundle $CodeQLVersion"
|
||||
}
|
||||
|
||||
function Get-DockerVersion {
|
||||
$dockerVersion = $(docker version --format "{{.Server.Version}}")
|
||||
return "Docker $dockerVersion"
|
||||
|
||||
Reference in New Issue
Block a user