mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Upload SARIF, not payload
This commit is contained in:
7
lib/entry-points.js
generated
7
lib/entry-points.js
generated
@@ -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 } : {};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user