Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
21 lines (14 loc) · 766 Bytes

File metadata and controls

21 lines (14 loc) · 766 Bytes
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.