Skip to content

Commit c314a3d

Browse files
committed
fix semgrep script
1 parent 54f3770 commit c314a3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/runSemgrep.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ source scripts/requireCommand.sh
66

77
requireCommand docker
88

9+
docker pull returntocorp/semgrep
10+
911
benchmark_version=$(scripts/getBenchmarkVersion.sh)
10-
semgrep_version=$(docker run --rm returntocorp/semgrep --version)
12+
semgrep_version=$(docker run --rm returntocorp/semgrep semgrep --version)
1113
result_file="/src/results/Benchmark_$benchmark_version-Semgrep-v$semgrep_version.json"
1214

13-
docker run --rm -v "${PWD}:/src" returntocorp/semgrep --config p/security-audit -q --json -o "$result_file" . > /dev/null
15+
docker run --rm -v "${PWD}:/src" returntocorp/semgrep semgrep --config p/security-audit -q --json -o "$result_file" . > /dev/null

0 commit comments

Comments
 (0)