FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJava/scripts/runInsider.sh at master · ericwb/BenchmarkJava · GitHub
ericwb
/
BenchmarkJava
Public
forked from
OWASP-Benchmark/BenchmarkJava
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BenchmarkJava
/
scripts
/
runInsider.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
25 lines (18 loc) · 1.06 KB
Breadcrumbs
BenchmarkJava
/
scripts
/
runInsider.sh
Copy path
File metadata and controls
executable file
·
25 lines (18 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!
/usr/bin/env bash
#
Check for install/updates at https://github.com/insidersec/insider
if
!
command
-v insider
&
>
/dev/null
;
then
echo
"
Insider not found. Visit https://github.com/insidersec/insider and follow installation instructions
"
exit
1
fi
source
scripts/requireCommand.sh
requireCommand curl
requireCommand jq
benchmark_version=
$(
scripts/getBenchmarkVersion.sh
)
insider_version=
$(
insider -version
|
grep Version
|
cut -d
'
'
-f2
)
result_file=
"
results/Benchmark_
$benchmark_version
-insider-v
$insider_version
.json
"
most_recent_insider_version=
$(
curl -H
"
Accept: application/vnd.github.v3+json
"
--silent https://api.github.com/repos/insidersec/insider/tags
|
jq -r
'
.[0].name
'
)
if
[
"
$insider_version
"
!=
"
$most_recent_insider_version
"
]
;
then
echo
"
You're using insider
$insider_version
, but
$most_recent_insider_version
is available. You should update your installation.
"
fi
insider -quiet --tech java -no-html -exclude
'
.idea
'
-exclude
'
.mvn
'
-exclude
'
results
'
-exclude
'
scorecard
'
-exclude
'
scripts
'
-exclude
'
tools
'
-target
"
.
"
mv report.json
"
$result_file
"
Back
|
FazBrowse Home
|
New Git URL