FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJava/scripts/runShiftLeftScan.sh at master · HuntingFighter/BenchmarkJava · GitHub
HuntingFighter
/
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
/
runShiftLeftScan.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (12 loc) · 728 Bytes
Breadcrumbs
BenchmarkJava
/
scripts
/
runShiftLeftScan.sh
Copy path
File metadata and controls
executable file
·
20 lines (12 loc) · 728 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
#!
/usr/bin/env bash
#
Check for install/updates at https://github.com/ShiftLeftSecurity/sast-scan
source
scripts/requireCommand.sh
requireCommand docker
docker pull docker.io/shiftleft/scan:latest
benchmark_version=
$(
scripts/getBenchmarkVersion.sh
)
shiflteft_version=
"
2.0.4
"
#
it's not (yet) possible to get the release version so we just assume it
result_file=
"
results/Benchmark_
$benchmark_version
-ShiftLeftScan-v
$shiflteft_version
.json
"
mkdir -p .shiftleftscan-reports
docker run --rm -e
"
WORKSPACE=
${PWD}
"
-v
~
/.m2:/.m2 -v
"
$PWD
"
:/app -v
"
$PWD
/.shiftleftscan-reports
"
:/app/reports shiftleft/scan scan --src /app --type java
mv .shiftleftscan-reports/scan-full-report.json
"
$result_file
"
rm -rf .shiftleftscan-reports
Back
|
FazBrowse Home
|
New Git URL