mirror of
https://github.com/github/codeql-action.git
synced 2026-11-08 22:19:50 +00:00
Normalize paths in new artifact upload to match legacy upload
This commit is contained in:
2
lib/debug-artifacts.js
generated
2
lib/debug-artifacts.js
generated
@@ -74,7 +74,7 @@ async function uploadDebugArtifacts(toUpload, rootDir, artifactName, ghVariant)
|
||||
}
|
||||
else {
|
||||
const artifactClient = new artifact.DefaultArtifactClient();
|
||||
await artifactClient.uploadArtifact(sanitizeArifactName(`${artifactName}${suffix}`), toUpload, rootDir, {
|
||||
await artifactClient.uploadArtifact(sanitizeArifactName(`${artifactName}${suffix}`), toUpload.map((file) => path.normalize(file)), path.normalize(rootDir), {
|
||||
// ensure we don't keep the debug artifacts around for too long since they can be large.
|
||||
retentionDays: 7,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user