boman-cli 2.5.2__tar.gz → 2.5.3__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: boman-cli
3
- Version: 2.5.2
3
+ Version: 2.5.3
4
4
  Summary: CLI tool of boman.ai
5
5
  Home-page: https://boman.ai
6
6
  Author: Sumeru Software Solutions Pvt. Ltd.
@@ -19,15 +19,6 @@ Requires-Dist: xmltodict<=0.13.0
19
19
  Requires-Dist: pyfiglet<=1.0.2
20
20
  Requires-Dist: aiohttp>=3.8.0
21
21
  Requires-Dist: packageurl-python>=0.11.0
22
- Dynamic: author
23
- Dynamic: author-email
24
- Dynamic: classifier
25
- Dynamic: description
26
- Dynamic: description-content-type
27
- Dynamic: home-page
28
- Dynamic: license
29
- Dynamic: requires-dist
30
- Dynamic: summary
31
22
 
32
23
  # Introduction
33
24
  Boman CLI is a Orchestration script written in python to run security scans on the local or CI/CD environment and upload the results to Boman.ai SaaS server.
@@ -110,6 +101,10 @@ Example: boman-cli -a run -zap_session_script ./session.js
110
101
 
111
102
 
112
103
  ### Release Note:
104
+
105
+ ### 2.5.3
106
+ - **SLA** - new feature. Build fail SLA has been introduced it can be configured in SaaS platform. Build fails if the condition is met menioned in SaaS. Check Build SLA in SLA menu for more info.
107
+
113
108
  ### 2.5.1
114
109
  - **SBOM** Added New fields as per certin
115
110
 
@@ -79,6 +79,10 @@ Example: boman-cli -a run -zap_session_script ./session.js
79
79
 
80
80
 
81
81
  ### Release Note:
82
+
83
+ ### 2.5.3
84
+ - **SLA** - new feature. Build fail SLA has been introduced it can be configured in SaaS platform. Build fails if the condition is met menioned in SaaS. Check Build SLA in SLA menu for more info.
85
+
82
86
  ### 2.5.1
83
87
  - **SBOM** Added New fields as per certin
84
88
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: boman-cli
3
- Version: 2.5.2
3
+ Version: 2.5.3
4
4
  Summary: CLI tool of boman.ai
5
5
  Home-page: https://boman.ai
6
6
  Author: Sumeru Software Solutions Pvt. Ltd.
@@ -19,15 +19,6 @@ Requires-Dist: xmltodict<=0.13.0
19
19
  Requires-Dist: pyfiglet<=1.0.2
20
20
  Requires-Dist: aiohttp>=3.8.0
21
21
  Requires-Dist: packageurl-python>=0.11.0
22
- Dynamic: author
23
- Dynamic: author-email
24
- Dynamic: classifier
25
- Dynamic: description
26
- Dynamic: description-content-type
27
- Dynamic: home-page
28
- Dynamic: license
29
- Dynamic: requires-dist
30
- Dynamic: summary
31
22
 
32
23
  # Introduction
33
24
  Boman CLI is a Orchestration script written in python to run security scans on the local or CI/CD environment and upload the results to Boman.ai SaaS server.
@@ -110,6 +101,10 @@ Example: boman-cli -a run -zap_session_script ./session.js
110
101
 
111
102
 
112
103
  ### Release Note:
104
+
105
+ ### 2.5.3
106
+ - **SLA** - new feature. Build fail SLA has been introduced it can be configured in SaaS platform. Build fails if the condition is met menioned in SaaS. Check Build SLA in SLA menu for more info.
107
+
113
108
  ### 2.5.1
114
109
  - **SBOM** Added New fields as per certin
115
110
 
@@ -121,7 +121,7 @@ class Config:
121
121
 
122
122
  log_level = "INFO"
123
123
 
124
- version = 'v2.5.2'
124
+ version = 'v2.5.3'
125
125
 
126
126
  boman_config_file = 'boman.yaml'
127
127
 
@@ -218,7 +218,10 @@ class Config:
218
218
  reachability_language=None
219
219
 
220
220
  fail_build = False
221
+ sla_fail_build = False
221
222
  polling_time = 60
222
223
  polling_frequency = 10
223
224
 
224
- ml_success = False
225
+ ml_success = False
226
+
227
+ reason_sla_build_fail = []
@@ -914,10 +914,10 @@ def exitFunction():
914
914
  x = requests.post(url,json=values)
915
915
  response = x.json()
916
916
 
917
- if not Config.fail_build:
918
- logging.info("Fail Build was not configured")
919
- Utils.get_summary_of_vulns(response)
920
- break
917
+ # if not Config.fail_build:
918
+ # logging.info("Fail Build was not configured")
919
+ # Utils.get_summary_of_vulns(response)
920
+ # break
921
921
 
922
922
  if "ml_status" in response.keys():
923
923
  if response["ml_status"] == True:
@@ -1365,6 +1365,14 @@ def default():
1365
1365
  logging.info('#####################################################################################')
1366
1366
  Utils.showSummary()
1367
1367
  Utils.uploadLogs()
1368
+
1369
+ # Sla build failing
1370
+ if Config.sla_fail_build == True:
1371
+ logging.warning("Failing the build for the below reason(s).")
1372
+ for reason in Config.reason_sla_build_fail:
1373
+ logging.warning(f"- {reason}")
1374
+ logging.warning("Please check SLA menu in Boman platform for more details.")
1375
+ exit(-1)
1368
1376
 
1369
1377
  ## checking the failbuild argument
1370
1378
  if args.failBuild == 'fail':
@@ -1141,6 +1141,9 @@ def get_summary_of_vulns(response):
1141
1141
  Config.medium_count = vuln['MEDIUM']
1142
1142
  Config.high_count = vuln['HIGH']
1143
1143
  Config.critical_count = vuln['CRITICAL']
1144
+
1145
+ Config.sla_fail_build= response["build_fail"]
1146
+ Config.reason_sla_build_fail = response["reason_for_failing"]
1144
1147
 
1145
1148
  logging.info('Summary: Analyzing Vulnerabitlites Done')
1146
1149
 
@@ -1,8 +1,9 @@
1
1
  [metadata]
2
2
  environment = prod
3
- version = 2.5.2
3
+ version = 2.5.3
4
4
  name = boman-cli
5
- saas_base_url = https://dashboard.boman.ai/
5
+ saas_base_url =
6
+ https = //dashboard.boman.ai/
6
7
 
7
8
  [egg_info]
8
9
  tag_build =
File without changes
File without changes
File without changes