mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Split SARIF uploading steps from uploadSpecifiedFiles into a function
This commit is contained in:
10
lib/init-action-post.js
generated
10
lib/init-action-post.js
generated
@@ -133358,7 +133358,6 @@ async function uploadFiles(inputSarifPath, checkoutPath, category, features, log
|
||||
);
|
||||
}
|
||||
async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features, logger, uploadTarget) {
|
||||
logger.startGroup(`Uploading ${uploadTarget.name} results`);
|
||||
const processingResults = await postProcessSarifFiles(
|
||||
logger,
|
||||
features,
|
||||
@@ -133367,6 +133366,15 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
||||
category,
|
||||
uploadTarget
|
||||
);
|
||||
return uploadProcessedFiles(
|
||||
logger,
|
||||
checkoutPath,
|
||||
uploadTarget,
|
||||
processingResults
|
||||
);
|
||||
}
|
||||
async function uploadProcessedFiles(logger, checkoutPath, uploadTarget, processingResults) {
|
||||
logger.startGroup(`Uploading ${uploadTarget.name} results`);
|
||||
const sarif = processingResults.sarif;
|
||||
const toolNames = getToolNames(sarif);
|
||||
logger.debug(`Validating that each SARIF run has a unique category`);
|
||||
|
||||
Reference in New Issue
Block a user