diff --git a/lib/entry-points.js b/lib/entry-points.js index 214c7b418..ad6051e73 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -187080,12 +187080,7 @@ async function maybeUploadFailedSarif(config, repositoryNwo, features, logger2) { isUnsuccessfulExecution: true } ); if (uploadResult.sarifID && shouldSkipSarifUpload()) { - await uploadSarifArtifact(logger2, "test-mode-sarif", { - // We defaulted to CodeScanning in the `uploadFiles` call above. - sarifFile: getSavedPayloadPath(CodeScanning.kind), - category: failedSarif.category, - checkoutPath: failedSarif.checkoutPath - }); + await uploadSarifArtifact(logger2, "test-mode-sarif", failedSarif); } return uploadResult ? { ...uploadResult.statusReport, sarifID: uploadResult.sarifID } : {}; } diff --git a/src/init-action-post-helper.ts b/src/init-action-post-helper.ts index 0071a3eaa..83c2aec9f 100644 --- a/src/init-action-post-helper.ts +++ b/src/init-action-post-helper.ts @@ -268,12 +268,7 @@ async function maybeUploadFailedSarif( // SARIF file and instead will have written it to disk. Upload it as a workflow artifact so that // we can inspect it in validation jobs. if (uploadResult.sarifID && shouldSkipSarifUpload()) { - await uploadSarifArtifact(logger, "test-mode-sarif", { - // We defaulted to CodeScanning in the `uploadFiles` call above. - sarifFile: uploadLib.getSavedPayloadPath(CodeScanning.kind), - category: failedSarif.category, - checkoutPath: failedSarif.checkoutPath, - }); + await uploadSarifArtifact(logger, "test-mode-sarif", failedSarif); } return uploadResult