customized report generated from set of blackduck reports that gives 'color coded vulnerabilities', and 'source paths' including 'direct' and 'indirect dependencies' details all in one report
Project description
bdvr, an Customized Blackduck_Vulnerability_report
Use case:
Project stakeholders want to know which files are affected with vulnerabilities after a Blackduck HUB scan.
Drawbacks:
The current blackduck generates multiple reports. To fulfill above requirement once has to refer 2 different reports to really able to trace the source files affected.
Features
-
Produces customized report where we can see vulnerability, OSS name, affected source path details all in one report
-
Color coded
low risk = no color
medium risk = Yellow
High risk = Red
-
Omits all other files which has no vulnerabilities.
Prerequiites:
Export your environment variable (in linux)
export BD_URL="https://www.your_blackduck.com" && export BD_TOKEN="YOUR_API_TOKEN"
How to install
pip install bdvr
Command to run
bdvr -h
usage: A program to create vulnerability reports for a given project-version [-h] [-z ZIP_FILE_NAME] [-r REPORTS] [--format {CSV}] [-t TRIES] [-s SLEEP_TIME] [--no-verify]
[-o]
project_name version_name
positional arguments:
project_name
version_name
options:
-h, --help show this help message and exit
-z ZIP_FILE_NAME, --zip_file_name ZIP_FILE_NAME
-r REPORTS, --reports REPORTS
Comma separated list (no spaces) of the reports to generate - ['version', 'scans', 'components', 'vulnerabilities', 'source', 'cryptography',
'license_terms', 'component_additional_fields', 'project_version_additional_fields', 'vulnerability_matches', 'upgrade_guidance',
'license_conflicts']. Default is all reports.
--format {CSV} Report format - only CSV available for now
-t TRIES, --tries TRIES
How many times to retry downloading the report, i.e. wait for the report to be generated
-s SLEEP_TIME, --sleep_time SLEEP_TIME
The amount of time to sleep in-between (re-)tries to download the report
--no-verify disable TLS certificate verification
-o (Optional) To automatically open the file
#To automatically open the file add -o option
bdvr BD_PROJECT_NAME BD_PROJECT_VERSION
Dependenceis
Thanks to all authors. As this library uses below modules
pandas = "^1.4.3"
quo = "^2022.8.2"
universal-startfile = "^0.1.3"
Issues
Please send your bugs to dineshr93@gmail.com
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bdvr-0.12.0.tar.gz.
File metadata
- Download URL: bdvr-0.12.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3315dd35f33c980164c670924b4737cbeebdc9a3135c332ec5fbef97131ec376
|
|
| MD5 |
c80088294d252e3986c35224a489f411
|
|
| BLAKE2b-256 |
b4ac5444b0365cf92647bf48d9484fb0396be2419565f45115647f457536515f
|
File details
Details for the file bdvr-0.12.0-py3-none-any.whl.
File metadata
- Download URL: bdvr-0.12.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd74f1004d15deaa5e5eb5660f2e96491762a3259964cf5de624e3f3665600d
|
|
| MD5 |
7369bfcfdd5361f7f5e73f28f78340e4
|
|
| BLAKE2b-256 |
dfee507c66b8f2e58d21d554a3b11792c0c9657b5e832d1aa143fd17860f6c62
|