Skip to content

Commit

Permalink
Copy SARIF file to database location rather than move
Browse files Browse the repository at this point in the history
  • Loading branch information
Angela P Wen committed Sep 12, 2024
1 parent e771680 commit bc660fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/debug-artifacts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/debug-artifacts.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/debug-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function uploadAllAvailableDebugArtifacts(
config.dbLocation,
`${lang}.sarif`,
);
fs.renameSync(sarifFile, sarifInDbLocation);
fs.copyFileSync(sarifFile, sarifInDbLocation);
filesToUpload.push(sarifInDbLocation);
}
}
Expand Down

0 comments on commit bc660fc

Please sign in to comment.