From 3f014e4a4cd462ae62f8b4915d2ac1c19db78075 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 24 Jul 2023 17:02:11 -0400 Subject: [PATCH] HdfConvert: Use HDF "control.descriptions" for "help" (#2633) Signed-off-by: Craig Andrews --- src/Sarif.Converters/HdfConverter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Sarif.Converters/HdfConverter.cs b/src/Sarif.Converters/HdfConverter.cs index a2c1d2de9..0f43eb197 100644 --- a/src/Sarif.Converters/HdfConverter.cs +++ b/src/Sarif.Converters/HdfConverter.cs @@ -107,6 +107,10 @@ private static (ReportingDescriptor, IList) SarifRuleAndResultFromHdfCon { Level = SarifLevelFromHdfImpact(execJsonControl.Impact), }, + Help = new MultiformatMessageString + { + Text = string.Join("\n", execJsonControl.Descriptions.Select(d => d.Label + ":\n" + d.Data)) + }, HelpUri = null, Relationships = new List( ((JArray)execJsonControl.Tags["nist"])