mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 02:18:47 +00:00
Print a warning when there are sarifFiles in getGroupedSarifFilePaths that don't belong to an analysis kind
This commit is contained in:
@@ -503,6 +503,12 @@ export async function getGroupedSarifFilePaths(
|
||||
logger.debug(`Found no SARIF files for ${analysisConfig.name}`);
|
||||
}
|
||||
}
|
||||
|
||||
if (sarifFiles.length !== 0) {
|
||||
logger.warning(
|
||||
`Found files in ${sarifPath} which do not belong to any analysis: ${sarifFiles.join(", ")}`,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
for (const analysisConfig of analyses.SarifScanOrder) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user