mirror of
https://github.com/github/codeql-action.git
synced 2026-11-10 06:54:40 +00:00
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:
4
lib/upload-lib.js
generated
4
lib/upload-lib.js
generated
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user