Skip to content

Commit f449d13

Browse files
committed
chore: added oss only to semgrep validate
1 parent 6f4a936 commit f449d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macaron/malware_analyzer/pypi_heuristics/sourcecode/pypi_sourcecode_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _load_defaults(self, resources_path: str) -> tuple[str, str | None]:
115115
logger.debug(error_msg)
116116
raise ConfigurationError(error_msg)
117117

118-
semgrep_commands: list[str] = ["semgrep", "scan", "--validate", "--config", custom_rule_path]
118+
semgrep_commands: list[str] = ["semgrep", "scan", "--validate", "--oss-only", "--config", custom_rule_path]
119119
try:
120120
process = subprocess.run(semgrep_commands, check=True, capture_output=True) # nosec
121121
except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as semgrep_error:

0 commit comments

Comments
 (0)