Skip to content

Commit a494c61

Browse files
committed
chore: implement method to validate suspicious packages for malicious behavior
1 parent 1ea1bd5 commit a494c61

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

@@ -483,6 +484,13 @@ def main(argv: list[str] | None = None) -> None:
483484
"The path to the local .m2 directory. If this option is not used, Macaron will use the default location at $HOME/.m2"
484485
),
485486
)
487+
488+
single_analyze_parser.add_argument(
489+
"--validate-malware-switch",
490+
required=False,
491+
action="store_true",
492+
help=("Enable malware validation."),
493+
)
486494

487495
# Dump the default values.
488496
sub_parser.add_parser(name="dump-defaults", description="Dumps the defaults.ini file to the output directory.")

0 commit comments

Comments
 (0)