mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Log more in diagnostics-without-db.ts
This commit is contained in:
@@ -17,6 +17,8 @@ const paths = fs.readdirSync(sarifDirectory, {
|
||||
encoding: "utf-8",
|
||||
});
|
||||
|
||||
core.info(`Found ${paths.length} paths in '${sarifDirectory}'.`);
|
||||
|
||||
let found = false;
|
||||
for (const diagnosticPath of paths) {
|
||||
if (path.extname(diagnosticPath) !== ".json") {
|
||||
@@ -30,6 +32,9 @@ for (const diagnosticPath of paths) {
|
||||
) as diagnostics.DiagnosticMessage;
|
||||
|
||||
if (contents.source.id === DIAGNOSTIC_ID) {
|
||||
core.info(
|
||||
`Found '${DIAGNOSTIC_ID}' in '${diagnosticPath}'. Skipping remaining files.`,
|
||||
);
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user