Skip to content

Commit 7b782b2

Browse files
committed
Fix findAndUpload not using sarifPredicate for the isDirectory() case
1 parent 7c9fe13 commit 7b782b2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/upload-sarif-action.js

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

src/upload-sarif.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ export async function findAndUpload(
3434
let sarifFiles: string[] | undefined;
3535

3636
if (pathStats.isDirectory()) {
37-
sarifFiles = upload_lib.findSarifFilesInDir(
38-
sarifPath,
39-
analysis.sarifPredicate,
40-
);
37+
sarifFiles = upload_lib.findSarifFilesInDir(sarifPath, sarifPredicate);
4138
} else if (pathStats.isFile() && sarifPredicate(sarifPath)) {
4239
sarifFiles = [sarifPath];
4340
} else {

0 commit comments

Comments
 (0)