1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

fix(codeqlExecuteScan): Fix working directory (#4597)

This commit is contained in:
sumeet patil 2023-09-25 16:52:54 +05:30 committed by GitHub
parent 9b6a465111
commit 33067a5cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,7 @@ func runCodeqlExecuteScan(config *codeqlExecuteScanOptions, telemetryData *telem
}
var reports []piperutils.Path
cmd := []string{"database", "create", config.Database, "--overwrite", "--source-root", config.ModulePath}
cmd := []string{"database", "create", config.Database, "--overwrite", "--source-root", ".", "--working-dir", config.ModulePath}
language := getLangFromBuildTool(config.BuildTool)