From 8523cef5b764cf73204222be3cfbaae823e61cfb Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Mon, 10 Jun 2024 10:24:02 +0300 Subject: [PATCH] Update ExecuteCodeQL.groovy Signed-off-by: Brett Logan --- jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy b/jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy index 01bc0a3a..6f46b382 100644 --- a/jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy +++ b/jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy @@ -170,9 +170,9 @@ def call(Org, Repo, Branch, Language, BuildCommand, Token, InstallCodeQL) { Write-Output "Analyzing database" if("\$Env:INSTALL_CODEQL" -eq "true") { - Invoke-Expression ".\\codeql\\codeql database analyze --no-download '\$Env:DATABASE_PATH' \$Env:CODEQL_THREADS_FLAG \$Env:CODEQL_RAM_FLAG --sarif-category 'ois-\$Env:LANGUAGE\$Env:SEP\$Env:CWD' --format sarif-latest --output '\$Env:SARIF_FILE' '\$Env:QL_PACKS'" + Invoke-Expression ".\\codeql\\codeql database analyze --no-download '\$Env:DATABASE_PATH' \$Env:CODEQL_THREADS_FLAG \$Env:CODEQL_RAM_FLAG --sarif-category 'ois-\$Env:LANGUAGE\$Env:SEP\$Env:CWD' --format "sarifv2.1.0" --output '\$Env:SARIF_FILE' '\$Env:QL_PACKS'" } else { - Invoke-Expression "codeql database analyze --no-download '\$Env:DATABASE_PATH' \$Env:CODEQL_THREADS_FLAG \$Env:CODEQL_RAM_FLAG --sarif-category 'ois-\$Env:LANGUAGE' --format sarif-latest --output '\$Env:SARIF_FILE' '\$Env:QL_PACKS'" + Invoke-Expression "codeql database analyze --no-download '\$Env:DATABASE_PATH' \$Env:CODEQL_THREADS_FLAG \$Env:CODEQL_RAM_FLAG --sarif-category 'ois-\$Env:LANGUAGE' --format "sarifv2.1.0" --output '\$Env:SARIF_FILE' '\$Env:QL_PACKS'" } Write-Output "Database analyzed" Write-Output "Generating CSV of results"