FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJava/scripts/runBearer_onWindows.bat at master · phillym/BenchmarkJava · GitHub
phillym
/
BenchmarkJava
Public
forked from
OWASP-Benchmark/BenchmarkJava
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
1
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
/
runBearer_onWindows.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (19 loc) · 768 Bytes
Breadcrumbs
BenchmarkJava
/
scripts
/
runBearer_onWindows.bat
Copy path
File metadata and controls
24 lines (19 loc) · 768 Bytes
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
@
echo
off
REM
Check for install/updates at https://github.com/bearer/bearer
where
docker
>
nul
2
>
nul
IF
%ERRORLEVEL%
NEQ
0
(
@
echo
docker required. Please install.
exit
/b
)
where
sh
>
nul
2
>
nul
IF
%ERRORLEVEL%
NEQ
0
(
@
echo
git bash is required. Please install.
exit
/b
)
docker pull bearer/bearer
for
/f
%%i
in
('sh scripts/getBenchmarkVersion.sh')
do
set
benchmark_version
=
%%i
for
/f
%%i
in
('docker run bearer/bearer bearer --version
^
| grep -o
"
[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+
"
')
do
set
bearer_version
=
%%i
set
result_file
=
"
/src/results/Benchmark_
%benchmark_version%
-Bearer-v
%bearer_version%
.json
"
set
current_dir
=
%cd%
@
echo
on
docker run --rm -v
"
%current_dir%
:/src
"
bearer/bearer scan /src/src/main/ --format jsonv2 --output
%result_file%
Back
|
FazBrowse Home
|
New Git URL