Copy SARIF file to database location rather than move

This commit is contained in:
Angela P Wen
2024-09-12 12:58:13 -07:00
parent e7716806b8
commit bc660fcf8c
3 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ async function uploadAllAvailableDebugArtifacts(config, logger) {
// Move SARIF to DB location so that they can be uploaded with the same root directory as the other artifacts.
if (fs.existsSync(sarifFile)) {
const sarifInDbLocation = path.resolve(config.dbLocation, `${lang}.sarif`);
fs.renameSync(sarifFile, sarifInDbLocation);
fs.copyFileSync(sarifFile, sarifInDbLocation);
filesToUpload.push(sarifInDbLocation);
}
}