ds-xbom-lib 6.0.0a2__tar.gz → 6.0.0a3__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.
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/PKG-INFO +1 -1
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/pyproject.toml +1 -1
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/ds_xbom_lib.egg-info/PKG-INFO +1 -1
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/xbom_lib/cdxgen.py +8 -1
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/README.md +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/setup.cfg +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/ds_xbom_lib.egg-info/SOURCES.txt +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/ds_xbom_lib.egg-info/dependency_links.txt +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/ds_xbom_lib.egg-info/top_level.txt +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/xbom_lib/__init__.py +0 -0
- {ds_xbom_lib-6.0.0a2 → ds_xbom_lib-6.0.0a3}/src/xbom_lib/blint.py +0 -0
|
@@ -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(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|