-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e182afc
commit 2d37d5a
Showing
7 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet) | ||
#mvn -Djava.awt.headless=true org.owasp:benchmarkutils-maven-plugin:create-scorecard -DconfigFile=config/score_v1.3config.yaml | ||
call mvn -Djava.awt.headless=true org.owasp:benchmarkutils-maven-plugin:create-scorecard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
source "scripts/verifyBenchmarkPluginAvailable.sh" | ||
#mvn -Djava.awt.headless=true org.owasp:benchmarkutils-maven-plugin:create-scorecard -DconfigFile=config/score_v1.3config.yaml | ||
mvn -Djava.awt.headless=true org.owasp:benchmarkutils-maven-plugin:create-scorecard | ||
MAVEN_OPTS="-Xmx8G" mvn -Djava.awt.headless=true org.owasp:benchmarkutils-maven-plugin:create-scorecard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Check for install/updates at https://github.com/returntocorp/semgrep | ||
# Check for install/updates at https://semgrep.dev/docs/update/ | ||
|
||
source scripts/requireCommand.sh | ||
|
||
requireCommand docker | ||
|
||
docker pull returntocorp/semgrep | ||
docker pull docker.io/semgrep/semgrep | ||
|
||
benchmark_version=$(scripts/getBenchmarkVersion.sh) | ||
semgrep_version=$(docker run --rm returntocorp/semgrep semgrep --version) | ||
semgrep_version=$(docker run --rm semgrep/semgrep semgrep --version) | ||
result_file="/src/results/Benchmark_$benchmark_version-Semgrep-v$semgrep_version.json" | ||
|
||
docker run --rm -v "${PWD}:/src" returntocorp/semgrep semgrep --config p/security-audit -q --json -o "$result_file" . > /dev/null | ||
docker run --rm -v "${PWD}:/src" semgrep/semgrep semgrep --config p/security-audit -q --json -o "$result_file" . > /dev/null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters