File tree 5 files changed +15
-3
lines changed
5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
# This then runs the codeql scan:
14
- ../../tools/codeql-home/codeql/codeql database analyze owasp-benchmark java-code-scanning.qls --format=sarifv2.1.0 --output=results/Benchmark_1.2-codeql_java-code-scanning_qls.sarif
14
+ benchmark_version=$( scripts/getBenchmarkVersion.sh)
15
+ ../../tools/codeql-home/codeql/codeql database analyze owasp-benchmark java-code-scanning.qls --format=sarifv2.1.0 --output=results/Benchmark_$benchmark_version -codeql_java-code-scanning_qls.sarif
15
16
Original file line number Diff line number Diff line change 8
8
# This script assumes the owasp-benchmark database has already been initialized by running this first:
9
9
# ../../Tools/codeql-home/codeql/codeql database create owasp-benchmark --language=java
10
10
# ../../Tools/codeql-home/codeql/codeql database analyze owasp-benchmark java-security-extended.qls --format=sarifv2.1.0 --output=results/Benchmark_1.2-codeql_java-security-extended.sarif
11
- ../../Tools/codeql-home/codeql/codeql database analyze owasp-benchmark java-security-and-quality.qls --format=sarifv2.1.0 --output=results/Benchmark_1.2-codeql_java-security-and-quality.sarif
11
+ benchmark_version=$( scripts/getBenchmarkVersion.sh)
12
+ ../../Tools/codeql-home/codeql/codeql database analyze owasp-benchmark java-security-and-quality.qls --format=sarifv2.1.0 --output=results/Benchmark_$benchmark_version -codeql_java-security-and-quality.sarif
12
13
Original file line number Diff line number Diff line change
1
+ # Note: you have to do 'contrast auth' first, and successfully authenticate before you can run this.
2
+ benchmark_version=$( scripts/getBenchmarkVersion.sh)
3
+
4
+ contrast scan -f target/benchmark.war --save
5
+ mv results.sarif results/Benchmark_$benchmark_version -ContrastCodeSec.sarif
6
+
Original file line number Diff line number Diff line change
1
+ # Install Snyk per: https://docs.snyk.io/snyk-cli/install-or-update-the-snyk-cli
2
+ benchmark_version=$( scripts/getBenchmarkVersion.sh)
3
+ snyk code test --json-file-output=results/Benchmark_$benchmark_version -snykCodeCli.json
4
+
Original file line number Diff line number Diff line change 1
1
# Verify the benchmarkutils plugin is installed. And if not, explain how to install it
2
- mvn -Djava.awt.headless=true - Dplugin=org.owasp:benchmarkutils-maven-plugin help:describe 2>&1 > /dev/null
2
+ mvn -Dplugin=org.owasp:benchmarkutils-maven-plugin help:describe 2>&1 > /dev/null
3
3
4
4
if [ $? -ne 0 ]
5
5
then
You can’t perform that action at this time.
0 commit comments