Skip to content

Commit

Permalink
Update ExecuteCodeQL.groovy
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni authored Jun 10, 2024
1 parent 7561812 commit 8523cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/shared-libraries/windows/vars/ExecuteCodeQL.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8523cef

Please sign in to comment.