Script to delete scans from application profiles and sandboxes, requiring a list of application ID's and sandbox names as input
Uses Python3
Clone this repository:
git clone https://github.com/aszaryk/delete_latest_scan
Install dependencies:
cd delete_latest_scan
pip3 install -r requirements.txt
(Optional) Save Veracode API credentials in ~/.veracode/credentials
[default]
veracode_api_key_id = <YOUR_API_KEY_ID>
veracode_api_key_secret = <YOUR_API_KEY_SECRET>
Tested using Python3
usage: delete_latest_build.py apps_sandboxes.csv
NOTE:
--apps_sandboxes.csv is a REQUIRED text file containing application and sandbox ID's: [app_id,sandbox_name]. See example file.
--If no [sandbox_name] is provided, the utility will delete the most recent policy level scan from the app profile