Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc660fc

Browse files
committed
Copy SARIF file to database location rather than move
1 parent e771680 commit bc660fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/debug-artifacts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/debug-artifacts.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/debug-artifacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function uploadAllAvailableDebugArtifacts(
8686
config.dbLocation,
8787
`${lang}.sarif`,
8888
);
89-
fs.renameSync(sarifFile, sarifInDbLocation);
89+
fs.copyFileSync(sarifFile, sarifInDbLocation);
9090
filesToUpload.push(sarifInDbLocation);
9191
}
9292
}

0 commit comments

Comments
 (0)