FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJavaForHub/scripts/runBearer.sh at master · DeepJoyPo/BenchmarkJavaForHub · GitHub
DeepJoyPo
/
BenchmarkJavaForHub
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
BenchmarkJavaForHub
/
scripts
/
runBearer.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
15 lines (9 loc) · 612 Bytes
Breadcrumbs
BenchmarkJavaForHub
/
scripts
/
runBearer.sh
Copy path
File metadata and controls
executable file
·
15 lines (9 loc) · 612 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
#!
/usr/bin/env bash
#
Check for install/updates at https://github.com/bearer/bearer
source
scripts/requireCommand.sh
requireCommand docker
docker pull bearer/bearer --platform linux/amd64
benchmark_version=
$(
scripts/getBenchmarkVersion.sh
)
bearer_version=
$(
docker run --platform linux/amd64 bearer/bearer bearer --version
|
grep -o
'
[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+
'
)
result_file=
"
/src/results/Benchmark_
$benchmark_version
-Bearer-v
$bearer_version
.json
"
docker run --platform linux/amd64 --rm -v
"
${PWD}
:/src
"
bearer/bearer scan /src/src/main/ --format jsonv2 --output
"
$result_file
"
>
/dev/null
Back
|
FazBrowse Home
|
New Git URL