Make the CodeQL instance a required parameter of uploadFiles

All the places that still call `uploadFiles` instead of `uploadSpecifiedFiles` are guaranteed to already have one.
This commit is contained in:
Michael B. Gale
2025-08-06 15:51:56 +01:00
parent 55b6208ff8
commit dca95cdb78
12 changed files with 16 additions and 11 deletions

4
lib/upload-lib.js generated
View File

@@ -453,9 +453,9 @@ exports.CodeQualityTarget = {
* Uploads a single SARIF file or a directory of SARIF files depending on what `inputSarifPath` refers
* to.
*/
async function uploadFiles(inputSarifPath, checkoutPath, category, features, logger, uploadTarget) {
async function uploadFiles(codeQL, inputSarifPath, checkoutPath, category, features, logger, uploadTarget) {
const sarifPaths = getSarifFilePaths(inputSarifPath, uploadTarget.sarifPredicate);
return uploadSpecifiedFiles(undefined, sarifPaths, checkoutPath, category, features, logger, uploadTarget);
return uploadSpecifiedFiles(codeQL, sarifPaths, checkoutPath, category, features, logger, uploadTarget);
}
/**
* Uploads the given array of SARIF files.