From 7f191927742c999ea8cf83728272794e8f07c8c3 Mon Sep 17 00:00:00 2001 From: Dan D'Avella Date: Tue, 3 Dec 2024 09:55:45 -0500 Subject: [PATCH] CodeQL: use "correlationGuid" for finding ID (#937) CodeQL: use "correlationGuid" for rule ID --- src/codemodder/codeql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codemodder/codeql.py b/src/codemodder/codeql.py index 041ed3e3..f595edc9 100644 --- a/src/codemodder/codeql.py +++ b/src/codemodder/codeql.py @@ -56,7 +56,7 @@ def from_sarif( finding=Finding( id=rule_id, rule=Rule( - id=rule_id, + id=sarif_result.get("correlationGuid", rule_id), name=rule_id, # TODO: map to URL # url=,