Skip to content

Commit 9ec0bb9

Browse files
committed
Fix incorrect getSarifFilePaths call in upload-sarif action
1 parent 08955db commit 9ec0bb9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/upload-sarif-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-sarif-action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ async function run() {
9797
core.setOutput("sarif-id", uploadResult.sarifID);
9898

9999
// If there are `.quality.sarif` files in `sarifPath`, then upload those to the code quality service.
100-
const qualitySarifFiles = upload_lib.getSarifFilePaths(sarifPath);
100+
const qualitySarifFiles = upload_lib.getSarifFilePaths(
101+
sarifPath,
102+
upload_lib.CodeQualityTarget.sarifPredicate,
103+
);
101104

102105
if (qualitySarifFiles.length !== 0) {
103106
await upload_lib.uploadSpecifiedFiles(

0 commit comments

Comments
 (0)