Skip to content

Commit

Permalink
Merge pull request #510 from DataDog/s.obregoso/fix_semgrepbypass
Browse files Browse the repository at this point in the history
Prevent code from bypassing semgrep
  • Loading branch information
sobregosodd authored Dec 30, 2024
2 parents 2742688 + 596e9f8 commit a2e0e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guarddog/analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def _invoke_semgrep(self, target: str, rules: Iterable[str]):
cmd.append("--no-git-ignore")
cmd.append("--json")
cmd.append("--quiet")
cmd.append("--disable-nosem")
cmd.append(f"--max-target-bytes={SEMGREP_MAX_TARGET_BYTES}")
cmd.append(target)
log.debug(f"Invoking semgrep with command line: {' '.join(cmd)}")
Expand Down

0 comments on commit a2e0e3f

Please sign in to comment.