Skip to content

Commit bc32470

Browse files
authored
Fix semgrep binary (#107)
1 parent 44f4900 commit bc32470

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/analyze.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func runSemgrepAnalysis(workDirectory string, pathsToCheck []string, outputFile
372372
if semgrep == nil {
373373
log.Fatal("Semgrep tool configuration not found")
374374
}
375-
semgrepBinary := semgrep.Binaries["python"]
375+
semgrepBinary := semgrep.Binaries["semgrep"]
376376

377377
return tools.RunSemgrep(workDirectory, semgrepBinary, pathsToCheck, outputFile, outputFormat)
378378
}

plugins/tools/semgrep/plugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ runtime_binaries:
55
package_manager: python3
66
execution: python3
77
binaries:
8-
- name: python
9-
path: "venv/bin/python3"
8+
- name: semgrep
9+
path: "venv/bin/semgrep"
1010
formatters:
1111
- name: json
1212
flag: "--json"

0 commit comments

Comments
 (0)