boman-cli 2.6.7__tar.gz → 2.6.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. {boman_cli-2.6.7 → boman_cli-2.6.8}/PKG-INFO +20 -1
  2. {boman_cli-2.6.7 → boman_cli-2.6.8}/README.md +19 -0
  3. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/PKG-INFO +20 -1
  4. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/Config.py +4 -2
  5. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/main.py +42 -33
  6. {boman_cli-2.6.7 → boman_cli-2.6.8}/setup.cfg +1 -1
  7. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/SOURCES.txt +0 -0
  8. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/dependency_links.txt +0 -0
  9. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/entry_points.txt +0 -0
  10. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/requires.txt +0 -0
  11. {boman_cli-2.6.7 → boman_cli-2.6.8}/boman_cli.egg-info/top_level.txt +0 -0
  12. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/_init_.py +0 -0
  13. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/auth.py +0 -0
  14. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/base_logger.py +0 -0
  15. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/dev_attribution.py +0 -0
  16. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/loc_finder.py +0 -0
  17. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/01-obfuscated-dynamic-exec.yaml +0 -0
  18. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/02-reverse-shell.yaml +0 -0
  19. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/03-download-and-execute.yaml +0 -0
  20. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/04-credential-exfiltration.yaml +0 -0
  21. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/06-suspicious-c2-endpoints.yaml +0 -0
  22. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/07-cryptominer-indicators.yaml +0 -0
  23. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/08-persistence.yaml +0 -0
  24. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/09-anti-analysis-evasion.yaml +0 -0
  25. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/bash/10-filesystem-tampering.yaml +0 -0
  26. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/01-obfuscated-dynamic-exec.yaml +0 -0
  27. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/02-reverse-shell.yaml +0 -0
  28. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/03-download-and-execute.yaml +0 -0
  29. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/04-credential-exfiltration.yaml +0 -0
  30. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/05-lifecycle-hook-abuse.yaml +0 -0
  31. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/06-suspicious-c2-endpoints.yaml +0 -0
  32. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/07-cryptominer-indicators.yaml +0 -0
  33. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/08-persistence.yaml +0 -0
  34. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/09-anti-analysis-evasion.yaml +0 -0
  35. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/10-filesystem-tampering.yaml +0 -0
  36. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/csharp/12-insecure-deserialization.yaml +0 -0
  37. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/01-obfuscated-dynamic-exec-confusable-unicode.yaml +0 -0
  38. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-composer.yaml +0 -0
  39. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/05-lifecycle-hook-abuse-npm.yaml +0 -0
  40. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/generic/boman-malware-detection.yml +0 -0
  41. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/01-obfuscated-dynamic-exec.yaml +0 -0
  42. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/02-reverse-shell.yaml +0 -0
  43. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/03-download-and-execute.yaml +0 -0
  44. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/04-credential-exfiltration.yaml +0 -0
  45. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/05-lifecycle-hook-abuse.yaml +0 -0
  46. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/06-suspicious-c2-endpoints.yaml +0 -0
  47. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/07-cryptominer-indicators.yaml +0 -0
  48. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/08-persistence.yaml +0 -0
  49. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/09-anti-analysis-evasion.yaml +0 -0
  50. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/go/10-filesystem-tampering.yaml +0 -0
  51. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/01-obfuscated-dynamic-exec.yaml +0 -0
  52. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/02-reverse-shell.yaml +0 -0
  53. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/03-download-and-execute.yaml +0 -0
  54. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/04-credential-exfiltration.yaml +0 -0
  55. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/05-lifecycle-hook-abuse.yaml +0 -0
  56. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/06-suspicious-c2-endpoints.yaml +0 -0
  57. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/07-cryptominer-indicators.yaml +0 -0
  58. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/08-persistence.yaml +0 -0
  59. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/09-anti-analysis-evasion.yaml +0 -0
  60. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/10-filesystem-tampering.yaml +0 -0
  61. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/java/12-insecure-deserialization.yaml +0 -0
  62. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/01-obfuscated-dynamic-exec.yaml +0 -0
  63. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/02-reverse-shell.yaml +0 -0
  64. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/03-download-and-execute.yaml +0 -0
  65. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/04-credential-exfiltration.yaml +0 -0
  66. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/06-suspicious-c2-endpoints.yaml +0 -0
  67. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/07-cryptominer-indicators.yaml +0 -0
  68. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/08-persistence.yaml +0 -0
  69. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/09-anti-analysis-evasion.yaml +0 -0
  70. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/10-filesystem-tampering.yaml +0 -0
  71. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/javascript/12-insecure-deserialization.yaml +0 -0
  72. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/01-obfuscated-dynamic-exec.yaml +0 -0
  73. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/02-reverse-shell.yaml +0 -0
  74. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/03-download-and-execute.yaml +0 -0
  75. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/04-credential-exfiltration.yaml +0 -0
  76. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/06-suspicious-c2-endpoints.yaml +0 -0
  77. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/07-cryptominer-indicators.yaml +0 -0
  78. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/08-persistence.yaml +0 -0
  79. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/09-anti-analysis-evasion.yaml +0 -0
  80. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/10-filesystem-tampering.yaml +0 -0
  81. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/php/12-insecure-deserialization.yaml +0 -0
  82. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/01-obfuscated-dynamic-exec.yaml +0 -0
  83. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/02-reverse-shell.yaml +0 -0
  84. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/03-download-and-execute.yaml +0 -0
  85. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/04-credential-exfiltration.yaml +0 -0
  86. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/05-lifecycle-hook-abuse.yaml +0 -0
  87. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/06-suspicious-c2-endpoints.yaml +0 -0
  88. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/07-cryptominer-indicators.yaml +0 -0
  89. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/08-persistence.yaml +0 -0
  90. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/09-anti-analysis-evasion.yaml +0 -0
  91. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/10-filesystem-tampering.yaml +0 -0
  92. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/python/12-insecure-deserialization.yaml +0 -0
  93. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/01-obfuscated-dynamic-exec.yaml +0 -0
  94. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/02-reverse-shell.yaml +0 -0
  95. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/03-download-and-execute.yaml +0 -0
  96. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/04-credential-exfiltration.yaml +0 -0
  97. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/05-lifecycle-hook-abuse.yaml +0 -0
  98. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/06-suspicious-c2-endpoints.yaml +0 -0
  99. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/07-cryptominer-indicators.yaml +0 -0
  100. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/08-persistence.yaml +0 -0
  101. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/09-anti-analysis-evasion.yaml +0 -0
  102. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/10-filesystem-tampering.yaml +0 -0
  103. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/ruby/12-insecure-deserialization.yaml +0 -0
  104. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/01-obfuscated-dynamic-exec.yaml +0 -0
  105. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/02-reverse-shell.yaml +0 -0
  106. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/03-download-and-execute.yaml +0 -0
  107. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/04-credential-exfiltration.yaml +0 -0
  108. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/06-suspicious-c2-endpoints.yaml +0 -0
  109. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/07-cryptominer-indicators.yaml +0 -0
  110. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/08-persistence.yaml +0 -0
  111. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/09-anti-analysis-evasion.yaml +0 -0
  112. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/malware_rules/boman/rust/10-filesystem-tampering.yaml +0 -0
  113. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/sbom_enricher.py +0 -0
  114. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/templates/template_plan.yaml +0 -0
  115. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/utils.py +0 -0
  116. {boman_cli-2.6.7 → boman_cli-2.6.8}/bomancli/validation.py +0 -0
  117. {boman_cli-2.6.7 → boman_cli-2.6.8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boman-cli
3
- Version: 2.6.7
3
+ Version: 2.6.8
4
4
  Summary: CLI tool of boman.ai
5
5
  Home-page: https://boman.ai
6
6
  Author: Sumeru Software Solutions Pvt. Ltd.
@@ -86,6 +86,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
86
86
 
87
87
  `boman-cli -a run -semgrep_token <value>`
88
88
 
89
+ ### Set cache when SBOM is failing due to cache error
90
+
91
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
92
+
93
+ ### Set non root mode when SAST is failing due to cache error
94
+
95
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
96
+
97
+ ### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
98
+
99
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
100
+
101
+
89
102
 
90
103
 
91
104
 
@@ -103,6 +116,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
103
116
 
104
117
  # Release Notes:
105
118
 
119
+ ### 2.6.8
120
+ - **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
121
+
122
+ ### 2.6.7
123
+ - **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
124
+
106
125
  ### 2.6.6
107
126
  - **Rule Deprication** - Depricating generic rule (Trojan Horse)
108
127
 
@@ -64,6 +64,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
64
64
 
65
65
  `boman-cli -a run -semgrep_token <value>`
66
66
 
67
+ ### Set cache when SBOM is failing due to cache error
68
+
69
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
70
+
71
+ ### Set non root mode when SAST is failing due to cache error
72
+
73
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
74
+
75
+ ### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
76
+
77
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
78
+
79
+
67
80
 
68
81
 
69
82
 
@@ -81,6 +94,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
81
94
 
82
95
  # Release Notes:
83
96
 
97
+ ### 2.6.8
98
+ - **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
99
+
100
+ ### 2.6.7
101
+ - **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
102
+
84
103
  ### 2.6.6
85
104
  - **Rule Deprication** - Depricating generic rule (Trojan Horse)
86
105
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boman-cli
3
- Version: 2.6.7
3
+ Version: 2.6.8
4
4
  Summary: CLI tool of boman.ai
5
5
  Home-page: https://boman.ai
6
6
  Author: Sumeru Software Solutions Pvt. Ltd.
@@ -86,6 +86,19 @@ Example: boman-cli -a run -zap_session_script ./session.js
86
86
 
87
87
  `boman-cli -a run -semgrep_token <value>`
88
88
 
89
+ ### Set cache when SBOM is failing due to cache error
90
+
91
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
92
+
93
+ ### Set non root mode when SAST is failing due to cache error
94
+
95
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -nrm True`
96
+
97
+ ### Set no enrichment SBOM when enriching SBOM is taking so much time then expected. The caveat is you will still get SBOM but it will not carry all the other details.
98
+
99
+ usage: `boman-cli -a run -at <project token> -ct <customer token> -std True`
100
+
101
+
89
102
 
90
103
 
91
104
 
@@ -103,6 +116,12 @@ Example: boman-cli -a run -zap_session_script ./session.js
103
116
 
104
117
  # Release Notes:
105
118
 
119
+ ### 2.6.8
120
+ - **new argument** - Do not enrich SBOM is now available for Jenkins and Non-Jenkins pipeline. Use `-nes True`at end of the command to enable this feature
121
+
122
+ ### 2.6.7
123
+ - **new argument** - Non root mode now available for Jenkins and Non-Jenkins pipeline. Use `-nrm True`at end of the command to enable this mode
124
+
106
125
  ### 2.6.6
107
126
  - **Rule Deprication** - Depricating generic rule (Trojan Horse)
108
127
 
@@ -121,7 +121,7 @@ class Config:
121
121
 
122
122
  log_level = "INFO"
123
123
 
124
- version = 'v2.6.7'
124
+ version = 'v2.6.8'
125
125
 
126
126
  boman_config_file = 'boman.yaml'
127
127
 
@@ -244,4 +244,6 @@ class Config:
244
244
 
245
245
  non_root_mode = False
246
246
  home="HOME=/tmp"
247
- xdg_cache_home="XDG_CACHE_HOME=/tmp/.cache"
247
+ xdg_cache_home="XDG_CACHE_HOME=/tmp/.cache"
248
+
249
+ no_enrichment_sbom = False
@@ -609,58 +609,63 @@ def runImage(data=None,type=None):
609
609
  logging.info('SBOM Docker: SUCCESS!!! Message: %s Scan Completed',tool_name)
610
610
  Config.sbom_message ='SBOM scan completed'
611
611
  Config.sbom_scan_status ='Completed'
612
+
613
+ if not Config.no_enrichment_sbom:
612
614
 
613
- ##running reachability before sbom upload
615
+ ##running reachability before sbom upload
614
616
 
615
617
 
616
- #this part i removed since, reachabitlity bug has tobe solved later
618
+ #this part i removed since, reachabitlity bug has tobe solved later
617
619
 
618
- #### sbom entrich part starts here
620
+ #### sbom entrich part starts here
619
621
 
620
622
 
621
- # Load SBOM (generated by Trivy or Syft)
622
- # Load SBOM (generated by Trivy or Syft)
623
- enricher = SBOMEnricher(Config.sbom_output_file)
623
+ # Load SBOM (generated by Trivy or Syft)
624
+ # Load SBOM (generated by Trivy or Syft)
625
+ enricher = SBOMEnricher(Config.sbom_output_file)
624
626
 
625
- # Enrich with additional fields
626
- enriched_data = enricher.enrich_components()
627
+ # Enrich with additional fields
628
+ enriched_data = enricher.enrich_components()
627
629
 
628
- # Save final SBOM
629
- enricher.save_sbom('sbom_enriched.json')
630
+ # Save final SBOM
631
+ enricher.save_sbom('sbom_enriched.json')
630
632
 
631
- #print(Config.sbom_output_file)
632
-
633
+ #print(Config.sbom_output_file)
634
+
633
635
 
634
- output_file = 'sbom_enriched.json'
636
+ output_file = 'sbom_enriched.json'
635
637
 
636
- logging.info('Enrichment done %s',output_file)
638
+ logging.info('Enrichment done %s',output_file)
637
639
 
638
640
 
639
-
640
- sbom_output_file = output_file
641
- csv_file = Config.hssc_output_file
642
- #generating sbom more data
641
+
642
+ sbom_output_file = output_file
643
+ csv_file = Config.hssc_output_file
644
+ #generating sbom more data
643
645
 
644
646
 
645
- #i should run the heisenger
646
-
647
- logging.info('Running SSC check on the repo')
647
+ #i should run the heisenger
648
+
649
+ logging.info('Running SSC check on the repo')
648
650
 
649
651
 
650
-
651
- try:
652
- Utils.runheisenberg(sbom_output_file) #docker of hsc
653
- except e:
654
- logging.info('Some error occured while Running HSC on the repo')
655
- exit(6)
656
-
657
- logging.info('Enrichment with more data is going to happen %s',Config.sbom_output_file)
652
+
653
+ try:
654
+ Utils.runheisenberg(sbom_output_file) #docker of hsc
655
+ except e:
656
+ logging.info('Some error occured while Running HSC on the repo')
657
+ exit(6)
658
+
659
+ logging.info('Enrichment with more data is going to happen %s',Config.sbom_output_file)
658
660
 
659
- enricher.run_heisenberg(sbom_output_file, csv_file)
661
+ enricher.run_heisenberg(sbom_output_file, csv_file)
660
662
 
661
- logging.info('Enrichment done %s',Config.sbom_output_file)
662
- ##exit(-1)
663
-
663
+ logging.info('Enrichment done %s',Config.sbom_output_file)
664
+ ##exit(-1)
665
+ else:
666
+ logging.info('SBOM Docker: Enrichment is disabled for SBOM, skipping enrichment step')
667
+ logging.info('SBOM Docker: SBOM scan completed without enrichment %s',output_file)
668
+
664
669
  except errors.ContainerError as exc:
665
670
  logging.error('SBOM Docker: Failed!!! Message: Some Error recorded while scanning %s',str(exc))
666
671
  msg='\n The following error has been recorded while scanning sca'
@@ -1309,6 +1314,7 @@ def default():
1309
1314
  parser.add_argument('-pof','--pollFrequency',default=10,help="Polling Frequency. Min : 5s, Max: 1min, Default : 10s. Format: input the time in seconds eg: 1min => 60 ")
1310
1315
  parser.add_argument('-std','--setCacheDir',default=False,help="Set the cache directory for the scan. Set true if you use jenkins cicd")
1311
1316
  parser.add_argument('-nrm','--nonRootMode',default=False,help="Set the non-root mode for the scan. Set true if you use jenkins cicd")
1317
+ parser.add_argument('-nes','--noEnrichmentSBOM',default=False,help="Set the no enrichment for SBOM scan. Set true if you want to skip the enrichment of SBOM scan")
1312
1318
  args = parser.parse_args()
1313
1319
 
1314
1320
  # if len(sys.args) == 1:
@@ -1341,6 +1347,9 @@ def default():
1341
1347
  else:
1342
1348
  Config.non_root_mode = False
1343
1349
 
1350
+ if args.noEnrichmentSBOM:
1351
+ Config.no_enrichment_sbom = True
1352
+
1344
1353
  # lingu user id set
1345
1354
  if args.semgrepToken == 'No':
1346
1355
  ##logging.info('jenkins is choosen')
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  environment = prod
3
- version = 2.6.7
3
+ version = 2.6.8
4
4
  name = boman-cli
5
5
  saas_base_url =
6
6
  https = //dashboard.boman.ai/
File without changes
File without changes
File without changes
File without changes