Quick and easy set of tools to run for Veracode.
-
Create API credentials in Veracode
Follow the instructions to create your API credentials:
Veracode API Credentials. -
Configure an API credentials file locally
Follow the instructions to configure your API credentials file:
Configure API Credentials. -
Import all Python dependencies
Usepip install -r requirements.txtor follow the next steps to set up a virtual environment.
Now, you should be all set to run the scripts locally!
-
GetBrokenDastScans.py
Run this tool to get a list of broken DAST scans. Currently, you have to log into the portal daily to check the status. -
More tools coming soon!
Note: Automate these scripts in Jenkins via a Jenkinsfile to run daily so that you get notified upon a failure.
More information about this integration:
Enabling HMAC in Veracode
-
Create a New Virtual Environment:
- On Windows:
python -m venv venv
- On macOS and Linux:
python3 -m venv venv
- On Windows:
-
Activate Your Virtual Environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Generate
venv_packages.txtUsingpip freeze:- Run:
pip freeze > venv_packages.txt - This command generates a list of installed packages and versions and saves it in the
venv_packages.txtfile.
- Run:
-
Install Packages from the
venv_packages.txtFile:- Run:
pip install -r venv_packages.txt
- Run:
-
Verify Installed Packages:
- Run:
pip list
- Run:
- Edit the .env File:
- Open your
backup.envfile in a text editor. - Add or update key-value pairs as needed.
- Rename
backup.envto.env.
- Open your
-
Activate Your Virtual Environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Navigate to the Directory Containing
main.py: -
Run the Script:
- Execute:
python main.py
- Execute:
-
Deactivate the Virtual Environment (Optional):
- Run:
deactivate
- Run: