mirror of
https://github.com/github/codeql-action.git
synced 2026-05-01 19:30:49 +00:00
Use path.extname for some extension checks
This commit is contained in:
+3
-2
@@ -480,8 +480,9 @@ export async function getGroupedSarifFilePaths(
|
||||
const results = {};
|
||||
|
||||
if (stats.isDirectory()) {
|
||||
let sarifFiles = findSarifFilesInDir(sarifPath, (name) =>
|
||||
name.endsWith(".sarif"),
|
||||
let sarifFiles = findSarifFilesInDir(
|
||||
sarifPath,
|
||||
(name) => path.extname(name) === ".sarif",
|
||||
);
|
||||
logger.debug(
|
||||
`Found the following .sarif files in ${sarifPath}: ${sarifFiles.join(", ")}`,
|
||||
|
||||
Reference in New Issue
Block a user