Skip to content

Finding

sereto.cli.finding

show_findings(version_config)

Show the findings for a specific version.

Parameters:

Name Type Description Default
version_config VersionConfig

The project configuration for specific version.

required
Source code in sereto/cli/finding.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@validate_call
def show_findings(version_config: VersionConfig) -> None:
    """Show the findings for a specific version.

    Args:
        version_config: The project configuration for specific version.
    """
    Console().log(f"Showing findings for version {version_config.version}")

    for target in version_config.targets:
        Console().line()
        table = Table("Finding name", "Category", "Risk", title=f"Target {target.data.name}")

        for finding_group in target.findings.groups:
            table.add_row(finding_group.name, target.data.category, finding_group.risk)

        Console().print(table, justify="center")