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 3a61940e40
commit d6b8ed80f2
2 changed files with 2 additions and 2 deletions

2
lib/entry-points.js generated
View File

@@ -187033,7 +187033,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

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