devsecpac 3.0.2__py3-none-any.whl → 3.0.4__py3-none-any.whl
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.
- devsec_cli/cli.py +1 -1
- devsec_cli/reporter.py +9 -1
- {devsecpac-3.0.2.dist-info → devsecpac-3.0.4.dist-info}/METADATA +1 -1
- {devsecpac-3.0.2.dist-info → devsecpac-3.0.4.dist-info}/RECORD +7 -7
- {devsecpac-3.0.2.dist-info → devsecpac-3.0.4.dist-info}/WHEEL +0 -0
- {devsecpac-3.0.2.dist-info → devsecpac-3.0.4.dist-info}/entry_points.txt +0 -0
- {devsecpac-3.0.2.dist-info → devsecpac-3.0.4.dist-info}/top_level.txt +0 -0
devsec_cli/cli.py
CHANGED
|
@@ -31,7 +31,7 @@ from .scanners.schemathesis import SchemathesisScanner
|
|
|
31
31
|
from .scanners.cosign import CosignAttestationEngine
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
console = Console()
|
|
34
|
+
console = Console(width=140) if (not sys.stdout.isatty() or os.environ.get("CI") or os.environ.get("TF_BUILD")) else Console()
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
def build_scanners():
|
devsec_cli/reporter.py
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from typing import List
|
|
5
5
|
import json
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
6
8
|
from rich.console import Console
|
|
7
9
|
from rich.table import Table
|
|
8
10
|
from rich.panel import Panel
|
|
@@ -11,7 +13,13 @@ from .contracts import ToolResult, StatusEnum, FindingDetail
|
|
|
11
13
|
|
|
12
14
|
class Reporter:
|
|
13
15
|
def __init__(self, console: Console = None):
|
|
14
|
-
|
|
16
|
+
if console is not None:
|
|
17
|
+
self.console = console
|
|
18
|
+
elif not sys.stdout.isatty() or os.environ.get("CI") or os.environ.get("TF_BUILD"):
|
|
19
|
+
# In CI/Docker non-TTY environments, Rich defaults to 80 cols which crushes Summary columns.
|
|
20
|
+
self.console = Console(width=140)
|
|
21
|
+
else:
|
|
22
|
+
self.console = Console()
|
|
15
23
|
|
|
16
24
|
def print_terminal_table(self, results: List[ToolResult]):
|
|
17
25
|
"""Prints a refined, responsive terminal table of active scanner results.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
devsec_cli/__init__.py,sha256=0w2ZOcxHZIOI0ey5_o4k5xL7jh0fEYyl2A447bmYW_8,122
|
|
2
2
|
devsec_cli/bypass.py,sha256=mQoKPpjpkoBScidFi4_k8uKjZz2PUyM91MFXlJ42Xew,4146
|
|
3
3
|
devsec_cli/ci.py,sha256=ExKkLZr6NdUDIIaKLVwwhtqF2wJOkzB5aJv8Lt3kOjM,7052
|
|
4
|
-
devsec_cli/cli.py,sha256=
|
|
4
|
+
devsec_cli/cli.py,sha256=4C7HqUQPH_Tng-beN-wOk2q_GbD5zbvk-IDo_vZMboc,22842
|
|
5
5
|
devsec_cli/contracts.py,sha256=60OY0OcSD093O9mUU-p_XUh0zz_-99O4G8GqqbtBOBE,1905
|
|
6
6
|
devsec_cli/correlator.py,sha256=sezkOQrXZRcGSJAF-1YQ_V206NiepK0eKi4PU2_W8yU,4672
|
|
7
7
|
devsec_cli/discovery.py,sha256=VaeB04DwG4qlyjumSLqqSlTP6R5Oa7EqbRCVrm1ChUU,5293
|
|
8
8
|
devsec_cli/ingestion.py,sha256=IKjwkqqBtpsw8K6uCq3XEFoOboE28Mwz7oidqxURCoY,6684
|
|
9
9
|
devsec_cli/installer.py,sha256=U_V0gi2OG8xruJPyLiyhmT9IgyKvvXVRbrfPZd4F1Sk,20426
|
|
10
10
|
devsec_cli/remediation.py,sha256=bwgdZsDiGlz3ejzw6IUsG5Oq7PxycsLa93sOsxNsNcg,4067
|
|
11
|
-
devsec_cli/reporter.py,sha256=
|
|
11
|
+
devsec_cli/reporter.py,sha256=0KlwaZda5zGqDHe2wFddJBr4Ca5EtFgzKssKNTsaiDc,11992
|
|
12
12
|
devsec_cli/runner.py,sha256=WH01SaVce0RF3dbapg9aHxEsOjTGLsVW4_YSC8imzMM,2618
|
|
13
13
|
devsec_cli/scanners/__init__.py,sha256=qFpXO7P-EkhZyvSRaTOpAn56JI0jrXCE4hydcFZvc0I,31
|
|
14
14
|
devsec_cli/scanners/base.py,sha256=aZS8CTDDyQo675uS9rN4g5jfl9nQPqMbWfkdnTO8B8Q,1462
|
|
@@ -27,8 +27,8 @@ devsec_cli/scanners/schemathesis.py,sha256=34MxR975p2UETZSppqO4iPgNVuesIQbO7xBZi
|
|
|
27
27
|
devsec_cli/scanners/secrets.py,sha256=ryNd3LoBt6wsN8sMlhAas8v_2fhVW7uh4Q0M8jzXm5A,6052
|
|
28
28
|
devsec_cli/scanners/semgrep.py,sha256=FGNVu-HTLZr7foI_SFdRti47pzu269A_8o3Dc6SAlsk,3244
|
|
29
29
|
devsec_cli/scanners/sonar.py,sha256=CVg16jBqjY7OMNeuXzgIX8hXmB11QBIR17lAykxwh8I,16467
|
|
30
|
-
devsecpac-3.0.
|
|
31
|
-
devsecpac-3.0.
|
|
32
|
-
devsecpac-3.0.
|
|
33
|
-
devsecpac-3.0.
|
|
34
|
-
devsecpac-3.0.
|
|
30
|
+
devsecpac-3.0.4.dist-info/METADATA,sha256=k5FuzUrH_oCo3-Rq2Z64nrPR-0XUfbdBvHUBeW4Ik-Q,12449
|
|
31
|
+
devsecpac-3.0.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
32
|
+
devsecpac-3.0.4.dist-info/entry_points.txt,sha256=sDbvsjeATRfx_XyYAANUwgibYWEXf_v9-TOZZsV4rWQ,79
|
|
33
|
+
devsecpac-3.0.4.dist-info/top_level.txt,sha256=9680CLlNBBHhAwrABMbxXiyBtqjbwiJ8GKusJTlhr2w,11
|
|
34
|
+
devsecpac-3.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|