mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Copy SARIF file to database location rather than move
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user