Skip to main content

cli tool for generating metadata and assessment report for [BeSLighthouse](https://github.com/Be-Secure/BeSLighthouse).

Project description

BeS-dev-kit

BeS-dev-kit is a cli tool for generating metadata and assessment report for BeSLighthouse.

Pre-requisites

  1. Python 3.10
  2. pip
  3. Github personal access token

Installation

$ python3 -m pip install besecure-developer-toolkit

Usage

If you are running the command for the first time, you will be prompted to provide the complete path to your besecure-osspoi-datastore and besecure-assessment-datastore and your personal access token

Generate Metadata

Command helps to generate metadata such as OSSP-master file data and version details file.

$ bes-dev-kit generate-metadata

generate metadata

For more options use --help at end.

metadata help

Note: For the first time use this command will ask for three extra inputs - ASSETS_DIR: path of besecure-osspoi-datastore in local system, ASSESSMENT_DIR: path of besecure-assessment-datastore, GITHUB_AUTH_TOKEN

metadata first time

Generate Reports

$ bes-dev-kit generate-report - generate all reports (scorecard, sciticality_score, codeql, sbom)

$ bes-dev-kit generate-report < report name > ... < report name > - generate specific report

generate report

<report name> - scorecard, codeql, criticality_score

For more options use --help at end.

report help

Note: If an older version of criticality_score is already installed in the system (< v2.0.0), Please uninstall it using pip uninstall criticality-score.

Download Risk Summary

Command helps to download risk-summary of Be-Secure listed open source projects in PDF format.

$ bes-dev-kit risk-summary

risk_summary

For more options use --help at end.

risk_summary help

Validate Version Details file

$ bes-dev-kit validate-version-file

validate version_file

Command helps to check version details file naming convention.

For more details use --help at end.

validate version_file help

Validate Report files

Command helps to check report files naming convention / if report file available.

$ bes-dev-kit validate-report-file <report name> ... <report name>

Note: Provide listed parameters only. scorecard, codeql, criticality_score, sonarqube, sbom, fossology

validate report_file

Use bellow command to check all reports at a time.

$ bes-dev-kit validate-report-file

validate report_file

For more details use --help at end.

validate version_file help

Setting up locally

  1. Install poetry. Use the link to install Poetry.
  2. Clone the repo.
  3. Move into the cloned directory.
  4. Run the command - $ poetry add "typer[all]"
  5. Create a new virtual env using Poetry - $ poetry shell
  6. Run the command to install the tool- $ poetry install
  7. Check installation - $ bes-dev-kit --help

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

besecure_developer_toolkit-0.0.8.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file besecure_developer_toolkit-0.0.8.tar.gz.

File metadata

File hashes

Hashes for besecure_developer_toolkit-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8b6e8ba0284911b8279bece7912bc2dc800e94303b6d0c9301e3c482906f8945
MD5 e4a0c1a0d4fe2b36948e75a568a1b2f8
BLAKE2b-256 2ef9efdb4a86da20b3c3f1653ac73b91fbf7e9c08fe84a169c0f13b7e011fa44

See more details on using hashes here.

File details

Details for the file besecure_developer_toolkit-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for besecure_developer_toolkit-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b018f72d69ebc48c305e03c60f9ae586a27a939728f91b3e5f68ae8bab16b33a
MD5 d4d079395a8e29310740682ab4a6eb92
BLAKE2b-256 e7dbecb05e5b2c1cae4d11d8c5dddc35118b9725c07546fa8aef931aa9464e05

See more details on using hashes here.

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