Skip to content

Commit 93711d3

Browse files
committed
Print a warning when there are sarifFiles in getGroupedSarifFilePaths that don't belong to an analysis kind
1 parent 056fb86 commit 93711d3

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

lib/upload-lib.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/upload-sarif-action.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,12 @@ export async function getGroupedSarifFilePaths(
503503
logger.debug(`Found no SARIF files for ${analysisConfig.name}`);
504504
}
505505
}
506+
507+
if (sarifFiles.length !== 0) {
508+
logger.warning(
509+
`Found files in ${sarifPath} which do not belong to any analysis: ${sarifFiles.join(", ")}`,
510+
);
511+
}
506512
} else {
507513
for (const analysisConfig of analyses.SarifScanOrder) {
508514
if (

0 commit comments

Comments
 (0)