Exemple #1
0
        private string BuildDescription(ClairVulnerabiltyResponse.ClairFeature feature, ClairVulnerabiltyResponse.ClairVulnerability vulnerability)
        {
            var builder = new StringBuilder();

            builder.AppendLine(vulnerability.Description);
            builder.AppendLine();
            builder.AppendLine($"Severity: {vulnerability.Severity}");
            builder.AppendLine($"More Information: {vulnerability.Link}");
            builder.AppendLine();
            builder.AppendLine($"Namespace: {feature.NamespaceName}");
            builder.AppendLine($"Feature: {feature.Name}");
            builder.AppendLine($"Feature Version: {feature.Version}");
            builder.AppendLine($"Fixed By Version: {vulnerability.FixedBy}");

            return(builder.ToString());
        }
Exemple #2
0
 private string BuildId(ClairVulnerabiltyResponse.ClairFeature feature)
 {
     return($"{feature.Name}:{feature.Version}");
 }