File tree Expand file tree Collapse file tree 7 files changed +29
-10
lines changed Expand file tree Collapse file tree 7 files changed +29
-10
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # shellcheck disable=SC2034
4
+ sonar_host=" "
5
+ sonar_project=" "
6
+ sonar_token=" "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ requireCommand () {
4
+ if ! command -v " $1 " & > /dev/null
5
+ then
6
+ echo " $1 is required. Please install it and then try again."
7
+ exit 1
8
+ fi
9
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
# Check for install/updates at https://github.com/ZupIT/horusec
4
4
5
- source scripts/requireDocker.sh
5
+ source scripts/requireCommand.sh
6
+
7
+ requireCommand docker
6
8
7
9
benchmark_version=$( scripts/getBenchmarkVersion.sh)
8
10
horusec_version=$( docker run horuszup/horusec-cli horusec version 2>&1 | grep version | awk ' {print $NF}' )
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ if ! command -v insider &> /dev/null; then
7
7
exit 1
8
8
fi
9
9
10
+ source scripts/requireCommand.sh
11
+
12
+ requireCommand curl
13
+ requireCommand jq
14
+
10
15
benchmark_version=$( scripts/getBenchmarkVersion.sh)
11
16
insider_version=$( insider -version | grep Version | cut -d' ' -f2)
12
17
result_file=" results/Benchmark_$benchmark_version -insider-v$insider_version .json"
Original file line number Diff line number Diff line change 2
2
3
3
# Check for install/updates at https://github.com/returntocorp/semgrep
4
4
5
- source scripts/requireDocker.sh
5
+ source scripts/requireCommand.sh
6
+
7
+ requireCommand docker
6
8
7
9
benchmark_version=$( scripts/getBenchmarkVersion.sh)
8
10
semgrep_version=$( docker run --rm returntocorp/semgrep --version)
Original file line number Diff line number Diff line change 2
2
3
3
# Check for install/updates at https://github.com/ShiftLeftSecurity/sast-scan
4
4
5
- source scripts/requireDocker.sh
5
+ source scripts/requireCommand.sh
6
+
7
+ requireCommand docker
6
8
7
9
benchmark_version=$( scripts/getBenchmarkVersion.sh)
8
10
shiflteft_version=" 2.0.3" # it's not (yet) possible to get the release version so we just assume it
You can’t perform that action at this time.
0 commit comments