ds-xbom-lib 6.0.0a2__tar.gz → 6.0.0b2__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.

Potentially problematic release.


This version of ds-xbom-lib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ds-xbom-lib
3
- Version: 6.0.0a2
3
+ Version: 6.0.0b2
4
4
  Summary: xBOM library for owasp depscan
5
5
  Author-email: Team AppThreat <cloud@appthreat.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ds-xbom-lib"
3
- version = "6.0.0a2"
3
+ version = "6.0.0b2"
4
4
  description = "xBOM library for owasp depscan"
5
5
  authors = [
6
6
  {name = "Team AppThreat", email = "cloud@appthreat.com"},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ds-xbom-lib
3
- Version: 6.0.0a2
3
+ Version: 6.0.0b2
4
4
  Summary: xBOM library for owasp depscan
5
5
  Author-email: Team AppThreat <cloud@appthreat.com>
6
6
  License-Expression: MIT
@@ -17,6 +17,9 @@ cdxgen_server_headers = {
17
17
  "Accept-Encoding": "gzip",
18
18
  }
19
19
 
20
+ # cdxgen timeout. Increased to 30 minutes
21
+ CDXGEN_TIMEOUT_MS = os.getenv("CDXGEN_TIMEOUT_MS", str(int(30 * 60 * 1000)))
22
+
20
23
  # version of cdxgen to use
21
24
  CDXGEN_IMAGE_VERSION = os.getenv("CDXGEN_IMAGE_VERSION", "latest")
22
25
  CDXGEN_IMAGE_ROLLING_VERSION = os.getenv("CDXGEN_IMAGE_ROLLING_VERSION", "v11")
@@ -271,6 +274,7 @@ class CdxgenGenerator(XBOMGenerator):
271
274
  prefix="cdxgen-temp-", dir=os.getenv("DEPSCAN_TEMP_DIR")
272
275
  )
273
276
  env["CDXGEN_TEMP_DIR"] = cdxgen_temp_dir
277
+ env["CDXGEN_TIMEOUT_MS"] = CDXGEN_TIMEOUT_MS
274
278
  if cdxgen_cmd:
275
279
  bom_result = exec_tool(
276
280
  args,
@@ -405,6 +409,7 @@ class CdxgenImageBasedGenerator(CdxgenGenerator):
405
409
  or k in ("FETCH_LICENSE",)
406
410
  ):
407
411
  run_command_args += ["-e", k]
412
+ run_command_args += ["-e", f"CDXGEN_TIMEOUT_MS={CDXGEN_TIMEOUT_MS}"]
408
413
  # Enabling license fetch will improve metadata such as tags and description
409
414
  # These will help with semantic reachability analysis
410
415
  if self.options.get("profile") not in ("generic",):
@@ -478,7 +483,9 @@ class CdxgenImageBasedGenerator(CdxgenGenerator):
478
483
  # Should we pull the most recent image
479
484
  if needs_latest_image(image_name):
480
485
  if self.logger:
481
- self.logger.debug(f"Pulling the image {image_name} using {container_command}.")
486
+ self.logger.debug(
487
+ f"Pulling the image {image_name} using {container_command}."
488
+ )
482
489
  exec_tool(
483
490
  [container_command, "pull", "--quiet", image_name], logger=self.logger
484
491
  )
File without changes
File without changes