Finding
sereto.cli.finding
¶
add_finding(project, template_path, finding_name=None, risk=None, target_selector=None, group_uname=None, group_name=None, variables=(), overwrite=False)
¶
Add a finding from a template non-interactively.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
Project
|
Project's representation. |
required |
template_path
|
FilePath
|
Path to the finding template file. |
required |
finding_name
|
str | None
|
Name for the sub-finding. |
None
|
risk
|
Risk | None
|
Risk level override. |
None
|
target_selector
|
str | None
|
Target selector (index or uname). |
None
|
group_uname
|
str | None
|
Uname of existing finding group to append to. |
None
|
group_name
|
str | None
|
Name for the new finding group. |
None
|
variables
|
tuple[str, ...]
|
Template variables as KEY=VALUE strings. |
()
|
overwrite
|
bool
|
If True, overwrite existing sub-finding instead of generating a unique suffix. |
False
|
Source code in sereto/cli/finding.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
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
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |