Skip to main content

WS Bulk Report Generator

Project description

Logo
License CI GitHub release PyPI

WhiteSource Bulk Report Generator

Tool to execute a report on multiple projects.

  • The tool allows including and excluding scopes by stating names and tokens.
  • Report scope determines whether reports will be run on projects or products.
  • If Included scopes is not stated (via -i/--includedTokens), the tool will run reports on all scopes within (i.e. if --token/-k is organization than on all the organization).
  • Report data is exported by default in binary (i.e. Excel or PDF) format or JSON.

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat
  • Windows (PowerShell): 10, 2012, 2016

Prerequisites

  • Python 3.6+

Installation and Execution by pulling package from PyPi:

  1. Execute pip install ws-bulk-report-generator
  2. Run report: ws_bulk_report_generator -u <USER_KEY> -k <ORG_TOKEN> -r <REPORT_NAME> -s <REPORT_SCOPE>

Installation and Execution by downloading project code from GitHub:

  1. Download the latest release
  2. Install Python dependencies: pip install -r requirements.txt
  3. Edit config.json file with desired parameters
  4. Run the tool:
python bulk_reports_generator.py -u <USER_KEY> -k <ORG_TOKEN> -r <REPORT_NAME> -s <REPORT_SCOPE>  

Full Usage:

> bulk_report_generator -h
usage: bulk_report_generator [-h] -u WS_USER_KEY -k WS_TOKEN -r
                             {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effect
ive_licenses,bugs,request_history}
                             [-s {project,product}] [-a WS_URL] [-o DIR] [-t {binary,json}] [-c CONFIG] [-i INC_TOKENS] [-e EXC_TOKENS] [-in INC_NAMES] [-en EXC_NAMES]

Bulk Reports Generator

optional arguments:
  -h, --help            show this help message and exit
  -u WS_USER_KEY, --userKey WS_USER_KEY
                        WS User Key
  -k WS_TOKEN, --token WS_TOKEN
                        WS Token
  -r {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effective_licenses,bugs,reques
t_history}, --report {alerts,ignored_alerts,resolved_alerts,inventory,vulnerability,container_vulnerability,source_files,source_file_inventory,in_house_libraries,in_house,risk,library_location,license_compatibility,due_diligence,attributes,attribution,effective_lice
nses,bugs,request_history}
                        Report Type to produce
  -s {project,product}, --ReportScope {project,product}
                        Scope of report
  -a WS_URL, --wsUrl WS_URL
                        WS URL
  -o DIR, --reportDir DIR
                        Report Dir
  -t {binary,json}, --outputType {binary,json}
                        Type of output
  -c CONFIG, --config CONFIG
                        Location of configuration file
  -i INC_TOKENS, --includedTokens INC_TOKENS
                        Report Dir
  -e EXC_TOKENS, --excludedTokens EXC_TOKENS
                        Report Dir
  -in INC_NAMES, --includedNames INC_NAMES
                        Report Dir
  -en EXC_NAMES, --excludedNames EXC_NAMES
                        Report Dir

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ws_bulk_report_generator-0.1.8-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page