mirror of
https://github.com/github/codeql-action.git
synced 2026-05-16 16:20:21 +00:00
Log numbered of PR diff-range filtered alerts
This commit is contained in:
Generated
+3
@@ -92964,6 +92964,7 @@ function filterAlertsByDiffRange(logger, sarif) {
|
||||
}
|
||||
for (const run of sarif.runs) {
|
||||
if (run.results) {
|
||||
const preAlertCount = run.results.length;
|
||||
run.results = run.results.filter((result) => {
|
||||
const locations = [
|
||||
...(result.locations || []).map((loc) => loc.physicalLocation),
|
||||
@@ -92980,6 +92981,8 @@ function filterAlertsByDiffRange(logger, sarif) {
|
||||
);
|
||||
});
|
||||
});
|
||||
const postAlertCount = run.results.length;
|
||||
logger.info(`Filtered ${preAlertCount - postAlertCount} alerts based on diff range.`);
|
||||
}
|
||||
}
|
||||
return sarif;
|
||||
|
||||
Reference in New Issue
Block a user