Skip to content

Commit d6b8ed8

Browse files
committed
Ensure that rootDirectory is suitable for sarifFile in uploadSarifArtifact
1 parent 3a61940 commit d6b8ed8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/init-action-post-helper.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ async function uploadSarifArtifact(
288288
await client.uploadArtifact(
289289
name,
290290
[path.normalize(failedSarif.sarifFile)],
291-
path.normalize(".."),
291+
path.normalize(path.dirname(failedSarif.sarifFile)),
292292
);
293293

294294
return { sarifID: name };

0 commit comments

Comments
 (0)