Fix incorrect getSarifFilePaths call in upload-sarif action

This commit is contained in:
Michael B. Gale 2025-06-26 12:22:08 +01:00
parent 08955dbc0d
commit 9ec0bb9605
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 6 additions and 3 deletions

View file

@ -97,7 +97,10 @@ async function run() {
core.setOutput("sarif-id", uploadResult.sarifID);
// If there are `.quality.sarif` files in `sarifPath`, then upload those to the code quality service.
const qualitySarifFiles = upload_lib.getSarifFilePaths(sarifPath);
const qualitySarifFiles = upload_lib.getSarifFilePaths(
sarifPath,
upload_lib.CodeQualityTarget.sarifPredicate,
);
if (qualitySarifFiles.length !== 0) {
await upload_lib.uploadSpecifiedFiles(