Veracode
Veracode copied to clipboard
A collection of scripts to interact with Veracode's API
Notice: Veracode is deprecating username and password authentication for Veracode APIs. If this script is not updated to work with Veracode API ID and Key it will stop working once basic auth support is fully removed. PRs welcome.
Warning: This script won't work out of the box. It will require settings or some customization.
shell/veracode.sh directory [version]
Arguments:
- directory: Required. Directory path containing the files you wish to submit in your scan (not recursive)
- version: Optional. Name of the build version. Will be seen in reports. Default:
date "+%Y-%m-%d %T"
This script will do the following:
- Check if a build was left in an incomplete state, if so delete it
- Create a new build
- Upload files
- Initiate pre-scan of files
- Poll for pre-scan completion
- Initate scan (will attempt to scan as many of the files as possible)
- Poll for scan completion
- Download the reports (detailed PDF, detailed XML, and summary PDF)
- Email the reports
Dependancies:
- curl
- mailx