Skip to content

Commit

Permalink
chore: added oss only to semgrep validate
Browse files Browse the repository at this point in the history
  • Loading branch information
art1f1c3R committed Feb 24, 2025
1 parent da0853a commit c162b40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _load_defaults(self, resources_path: str) -> tuple[str, str | None]:
logger.debug(error_msg)
raise ConfigurationError(error_msg)

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

0 comments on commit c162b40

Please sign in to comment.