From b7bfe14150c1683a597aee54608c0f60c43698e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Cser=C3=A9p?= Date: Sun, 15 Jun 2025 15:54:59 +0200 Subject: [PATCH] fix: Sarif 2 message conversion --- CodeQualityToGitlab/SarifConverters/Converter2.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeQualityToGitlab/SarifConverters/Converter2.cs b/CodeQualityToGitlab/SarifConverters/Converter2.cs index 54ee240..0c928c2 100644 --- a/CodeQualityToGitlab/SarifConverters/Converter2.cs +++ b/CodeQualityToGitlab/SarifConverters/Converter2.cs @@ -22,7 +22,7 @@ public List Convert() if (begin == null) { - Log.Warning("An issue has no location, skipping: {@Result}", result.Message); + Log.Warning("An issue has no location, skipping: {@Result}", result.Message.Text); continue; } @@ -31,7 +31,7 @@ public List Convert() var startLine = begin.PhysicalLocation.Region.StartLine; var cqr = new CodeQuality { - Description = $"{result.RuleId}: {result.Message}", + Description = $"{result.RuleId}: {result.Message.Text}", Severity = GetSeverity(result.Level), Location = new() {