Ensure that rootDirectory is suitable for sarifFile in uploadSarifArtifact

This commit is contained in:
Michael B. Gale
2026-10-16 13:09:16 +01:00
parent c3c2f74292
commit d60475591a
2 changed files with 2 additions and 2 deletions

2
lib/entry-points.js generated
View File

@@ -187108,7 +187108,7 @@ async function uploadSarifArtifact(logger2, prefix, failedSarif) {
await client.uploadArtifact(
name,
[import_path8.default.normalize(failedSarif.sarifFile)],
import_path8.default.normalize("..")
import_path8.default.normalize(import_path8.default.dirname(failedSarif.sarifFile))
);
return { sarifID: name };
} finally {

View File

@@ -315,7 +315,7 @@ async function uploadSarifArtifact(
await client.uploadArtifact(
name,
[path.normalize(failedSarif.sarifFile)],
path.normalize(".."),
path.normalize(path.dirname(failedSarif.sarifFile)),
);
return { sarifID: name };