https://github.com/blackducksoftware/bd-splitter
Black Duck splitter solution for performing signature scanning on large projects
https://github.com/blackducksoftware/bd-splitter
Last synced: 20 days ago
JSON representation
Black Duck splitter solution for performing signature scanning on large projects
- Host: GitHub
- URL: https://github.com/blackducksoftware/bd-splitter
- Owner: blackducksoftware
- Created: 2020-10-13T20:05:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T23:33:42.000Z (about 2 years ago)
- Last Synced: 2025-03-24T10:45:38.637Z (about 1 month ago)
- Language: Python
- Size: 106 MB
- Stars: 7
- Watchers: 22
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Black Duck Scanning Splitter
Black Duck has a per-scan limit of 5 GB (on signature scans) to protect server resources from being overloaded and to encourage splitting up large projects into multiple, smaller scans that allow results to be produced faster and with less overhead. Customers want a solution that automates the splitting of a large project into smaller scans.
This repository provides a python-based example that will split the targeted folder/directory into (signature) scans that will fit within the size limit.
### Requirements
- python3
- Install dependencies specified in *requirements.txt*
- Black Duck server URL
- BD user API token
- Synopsys Detect jar
- a version of Synopsys detect jar is included in this repository### How to Run
1. Install the dependencies for bd-splitter into your (virtual) environment
```
pip3 install -r requirements.txt
```
4. Create .restconfig.json file with the required BD URL, BD user API token.
3. Then run bd-splitter.py
```
python3 bd-splitter.py https://bd-server-fqdn api-token project-name version-name target-dir
```# Release Log
- Nov 2, 2020
- Tag/version 1.0.1
- Add try/except to overcome FileNotFoundError resulting from symbolic link to a file that no longer exists