Copy SARIF file to database location rather than move
This commit is contained in:
parent
e7716806b8
commit
bc660fcf8c
3 changed files with 3 additions and 3 deletions
2
lib/debug-artifacts.js
generated
2
lib/debug-artifacts.js
generated
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue