Skip to content

Commit d966334

Browse files
committed
workaround
1 parent 13e3f6c commit d966334

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/scripts/filter-sarif.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# Keep at least one run
1515
runs = runs if len(runs) > 0 else [sarif["runs"][0]]
1616

17+
# GitHub expects each tool to only create 1 run, but Snyk splits the results
18+
# across multiple runs. As a workaround, we rename the tools for each run to
19+
# ensure they are unique in thef ile.
20+
# https://github.blog/changelog/2025-07-21-code-scanning-will-stop-combining-multiple-sarif-runs-uploaded-in-the-same-sarif-file/
1721
for i, run in enumerate(runs):
1822
run["tool"]["driver"]["name"] += f"_{i}"
1923

0 commit comments

Comments
 (0)