Skip to content

Commit 4ed5561

Browse files
chore: implement method to validate suspicious packages for malicious… (#851)
1 parent ba5f2d9 commit 4ed5561

File tree

7 files changed

+730
-0
lines changed

7 files changed

+730
-0
lines changed

src/macaron/__main__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ def analyze_slsa_levels_single(analyzer_single_args: argparse.Namespace) -> None
179179
analyzer_single_args.sbom_path,
180180
deps_depth,
181181
provenance_payload=prov_payload,
182+
validate_malware_switch=analyzer_single_args.validate_malware_switch,
182183
)
183184
sys.exit(status_code)
184185

@@ -484,6 +485,13 @@ def main(argv: list[str] | None = None) -> None:
484485
),
485486
)
486487

488+
single_analyze_parser.add_argument(
489+
"--validate-malware-switch",
490+
required=False,
491+
action="store_true",
492+
help=("Enable malware validation."),
493+
)
494+
487495
# Dump the default values.
488496
sub_parser.add_parser(name="dump-defaults", description="Dumps the defaults.ini file to the output directory.")
489497

0 commit comments

Comments
 (0)