Skip to main content

This is script to generate reports through Mend API v3.0

Project description

Mend Report Generation tool

This is script to generate reports through Mend API v3.0.

How To Use

$ mend-reporting-tool -h
usage: mend-reporting-tool [-h] [-v] -mendAPI MENDAPI -orgUUID ORGUUID -userEmail USEREMAIL -userKey USERKEY -projectUUID PROJECTUUID
                           [-reportType REPORTTYPE] [-format FORMAT] [-unzip UNZIP]

This is script to generate reports through Mend API v3.0.

options:
  -h, --help            show this help message and exit
  -v, --version         Show version and exit
  -mendAPI MENDAPI      Mend API v3.0 server hostname without https://, like `api-saas.whitesourcesoftware.com`
  -orgUUID ORGUUID      Organization UUID
  -userEmail USEREMAIL  User Email
  -userKey USERKEY      User Key
  -projectUUID PROJECTUUID
                        List of Project UUIDs separeted by ','
  -reportType REPORTTYPE
                        Report Type, acceptable report types: `vulnerabilities`, `inventory`, `dueDiligence`, `risk`, `sbom`, `spdx`, `spdx_2_3`,   
                        `cycloneDX`, `cycloneDX_1_5`, `cycloneDX_1_6`. The `vulnerabilities` report type generates vulnerability report. The        
                        `dueDiligence` report type generates OSS licenses risk analysis report. The `risk` report type generates OSS security risk  
                        analysis report. The `inventory` report type generates OSS inventory report. The `sbom`,`spdx`, and `spdx_2_3` report       
                        types generate SBoM in `SPDX` format. The `cycloneDX`, `cycloneDX_1_5`, and `cycloneDX_1_6` report types generate SBoM in   
                        `CycloneDX` format. Optional, default: `cycloneDX_1_6`
  -format FORMAT        Report Format, acceptable formats for reportType `vulnerabilities`: `json`, `excel`; for reportType
                        `sbom`,`spdx`,`spdx_2_3`: `json`, `yaml`; for reportType `cycloneDX`: `json`; for reportType `risk`: `pdf`; for reportType  
                        `inventory`: `excel`; for reportType `dueDiligence`: `excel`. Optional, default: `json`
  -unzip UNZIP          Extract report to the 'mend-reports' folder. Variants: yes, no. Optional, default: `yes`. In case of `no` report in .zip    
                        format will be saved in the current directory
 
### Example:
mend-reporting-tool  -mendAPI $MEND_API -orgUUID $MEND_ORGANIZATION_UUID -userEmail $MEND_EMAIL  -userKey $MEND_USER_KEY -projectUUID $PROJECT_UUID -reportType cycloneDX_1_6 -format json -unzip yes

### Processing Project UUID: <Project_UUID>
>>> The report saved to 'report-<Project_UUID>.zip' successfully.
>>> The report 'report-<Project_UUID>.zip' extracted to 'mend-reports' folder.
>>> Deleted: report-<Project_UUID>.zip
>>> Report is ready in `mend-reports` folder.
...

# Example of possible reports Types and Formats in `mend-reports` folder:
$ ls mend-reports/
<Project_Name>-project-CycloneDX-report-<Project_UUID>.json
<Project_Name>-project-SPDX-report.json
<Project_Name>-project-SPDX-report.yaml
<Project_Name>-due-diligence-report.xlsx
<Project_Name>-inventory-report_Page_1.xlsx
<Project_Name>-risk.pdf
<Project_Name>-vulnerability-report.json
<Project_Name>-vulnerability-report.xlsx

How To Install

pip install 'mend-reporting-tool==0.2.2'

How To Install from source code

git clone https://github.com/chelyshev/mend-reporting-tool.git
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Project details


Download files

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

Source Distribution

mend_reporting_tool-0.2.2.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file mend_reporting_tool-0.2.2.tar.gz.

File metadata

  • Download URL: mend_reporting_tool-0.2.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mend_reporting_tool-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c28df10ffe11c81a5924141c6681f0f93142ad998ad0791d645994ed79cc89e5
MD5 00fedb5a2a023b3386e355a457702af1
BLAKE2b-256 7a1d15426c92a61ec0f2f9f12dd823a444760ca91e8c8de7c9a307596709f7ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for mend_reporting_tool-0.2.2.tar.gz:

Publisher: python-publish.yml on chelyshev/mend-reporting-tool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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