Upload SARIF, not payload

This commit is contained in:
Michael B. Gale
2026-10-16 13:53:17 +01:00
parent dabc0161e7
commit 8bd2b415ff
2 changed files with 2 additions and 12 deletions

7
lib/entry-points.js generated
View File

@@ -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 } : {};
}

View File

@@ -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