FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJava/scripts/runContrastCodeSec_OnSource.sh at master · OWASP-Benchmark/BenchmarkJava · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
OWASP-Benchmark
/
BenchmarkJava
Public
Notifications
You must be signed in to change notification settings
Fork
1.5k
Star
820
Code
Issues
11
Pull requests
5
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BenchmarkJava
/
scripts
/
runContrastCodeSec_OnSource.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (14 loc) · 766 Bytes
Breadcrumbs
BenchmarkJava
/
scripts
/
runContrastCodeSec_OnSource.sh
Copy path
File metadata and controls
21 lines (14 loc) · 766 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
#
To use Contrast CodeSec you have to install it first.
#
See the install instructions at: https://www.contrastsecurity.com/developer/codesec/
#
For example, on Mac:
#
brew tap contrastsecurity/tap
#
brew install contrast
#
To scan the source code you have to create a .zip of the src/ directory so src.zip exists in the project's root folder.
if
[
-f
"
./src.zip
"
]
;
then
#
Note: you have to do 'contrast auth' first, and successfully authenticate before you can run this.
benchmark_version=
$(
scripts/getBenchmarkVersion.sh
)
contrast scan -f src.zip --timeout=10000 --save
mv results.sarif results/Benchmark_
$benchmark_version
-ContrastCodeSec_OnSrc.sarif
else
echo
"
ERROR: You must create a .zip of the src directory first, before running this script.
"
fi
Back
|
FazBrowse Home
|
New Git URL