diff --git a/src/LCT.Common/Constants/Dataconstant.cs b/src/LCT.Common/Constants/Dataconstant.cs index 84f537d5..ace66df6 100644 --- a/src/LCT.Common/Constants/Dataconstant.cs +++ b/src/LCT.Common/Constants/Dataconstant.cs @@ -47,6 +47,7 @@ public static class Dataconstant public const string PackageUrlNotFound = "Package URL not found"; public const string PackageNameNotFoundInJfrog = "Package name not found in Jfrog"; public const string JfrogRepoPathNotFound = "Jfrog repo path not found"; + public const string NotFoundInJFrog = "Not Found in JFrogRepo"; public const string LinkedByCATool = "Linked by CA Tool"; public const string LinkedByCAToolReleaseRelation = "UNKNOWN"; public const string LinkedByCAToolReleaseRelationContained = "CONTAINED"; diff --git a/src/LCT.PackageIdentifier/BomHelper.cs b/src/LCT.PackageIdentifier/BomHelper.cs index 7821d676..5ce7b1d9 100644 --- a/src/LCT.PackageIdentifier/BomHelper.cs +++ b/src/LCT.PackageIdentifier/BomHelper.cs @@ -51,6 +51,10 @@ public void WriteBomKpiDataToConsole(BomKpiData bomKpiData) {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ComponentsExcluded)),bomKpiData.ComponentsExcluded}, {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.DuplicateComponents)),bomKpiData.DuplicateComponents}, {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.InternalComponents)),bomKpiData.InternalComponents}, + {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ThirdPartyRepoComponents)),bomKpiData.ThirdPartyRepoComponents}, + {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.DevdependencyComponents)),bomKpiData.DevdependencyComponents}, + {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ReleaseRepoComponents)),bomKpiData.ReleaseRepoComponents}, + {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.UnofficialComponents)),bomKpiData.UnofficialComponents}, {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ComponentsinSBOMTemplateFile)),bomKpiData.ComponentsinSBOMTemplateFile}, {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ComponentsUpdatedFromSBOMTemplateFile)),bomKpiData.ComponentsUpdatedFromSBOMTemplateFile}, {CommonHelper.Convert(bomKpiData,nameof(bomKpiData.ComponentsInComparisonBOM)),bomKpiData.ComponentsInComparisonBOM } diff --git a/src/LCT.PackageIdentifier/ConanProcessor.cs b/src/LCT.PackageIdentifier/ConanProcessor.cs index 936da4a4..7cb5a1d6 100644 --- a/src/LCT.PackageIdentifier/ConanProcessor.cs +++ b/src/LCT.PackageIdentifier/ConanProcessor.cs @@ -133,6 +133,23 @@ public async Task> GetJfrogRepoDetailsOfAComponent(List> GetJfrogRepoDetailsOfAComponent(List> GetJfrogRepoDetailsOfAComponent(List(); diff --git a/src/LCT.PackageIdentifier/Model/BomKpiData.cs b/src/LCT.PackageIdentifier/Model/BomKpiData.cs index e402b4b3..83c83245 100644 --- a/src/LCT.PackageIdentifier/Model/BomKpiData.cs +++ b/src/LCT.PackageIdentifier/Model/BomKpiData.cs @@ -33,6 +33,19 @@ public class BomKpiData [DisplayName(@"Internal Components Identified")] public int InternalComponents { get; set; } + [DisplayName(@"Components already present in 3rd party repo(s) ")] + public int ThirdPartyRepoComponents { get; set; } + + [DisplayName(@"Components already present in devdep repo(s)")] + public int DevdependencyComponents { get; set; } + + [DisplayName(@"Components already present in release repo(s)")] + public int ReleaseRepoComponents { get; set; } + + [DisplayName(@"Components not from official repo(s)")] + public int UnofficialComponents { get; set; } + + [DisplayName(@"Total Components Excluded")] public int ComponentsExcluded { get; set; } diff --git a/src/LCT.PackageIdentifier/NpmProcessor.cs b/src/LCT.PackageIdentifier/NpmProcessor.cs index d269025b..b16940eb 100644 --- a/src/LCT.PackageIdentifier/NpmProcessor.cs +++ b/src/LCT.PackageIdentifier/NpmProcessor.cs @@ -408,9 +408,27 @@ public async Task> GetJfrogRepoDetailsOfAComponent(List> GetJfrogRepoDetailsOfAComponent(List(); diff --git a/src/LCT.PackageIdentifier/PythonProcessor.cs b/src/LCT.PackageIdentifier/PythonProcessor.cs index 2daadc33..f3898740 100644 --- a/src/LCT.PackageIdentifier/PythonProcessor.cs +++ b/src/LCT.PackageIdentifier/PythonProcessor.cs @@ -415,6 +415,23 @@ public async Task> GetJfrogRepoDetailsOfAComponent(List