Skip to main content

A Bandit formatter for the Static Analysis Results Interchange Format (SARIF) Version 2.1.0 file format.

Project description

SARIF formatter for Bandit

Overview

bandit_sarif_formatter is a report formatter for Bandit, a security analyzer for Python. It produces output in the Static Analysis Results Interchange Format (SARIF) Version 2.1.0 file format, an OASIS Committee Specification.

To learn more about SARIF and find resources for working with it, you can visit the SARIF Home Page.

Building

To build the bandit_sarif_formatter package, see the Python Packaging Authority’s instructions for Packaging Python Projects, in particular the section “Generating distribution archives.”

Briefly: run the following commands from the project root directory:

python -m pip install --user --upgrade setuptools wheel
python setup.py sdist bdist_wheel

The source distribution (.tar.gz) and wheel-style built distribution (.whl) packages appear in the dist/ directory.

Publishing

To publish the bandit_sarif_formatter package, see the section “Uploading the distribution archives” and “Next steps” in Packaging Python Projects.

Briefly: log in to https://pypi-hypernode.com with the TODO account, and then run the following commands from the project root directory:

python -m pip install --user --upgrade twine
python -m twine upload dist/*

Installing

To install the bandit_sarif_formatter package, run the command:

python -m pip install bandit_sarif_formatter

Using

To generate SARIF output from Bandit, run the command:

bandit --format sarif [targets [targets ...]] --output out.sarif

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

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

bandit_sarif_formatter-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

bandit_sarif_formatter-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file bandit_sarif_formatter-1.0.0.tar.gz.

File metadata

  • Download URL: bandit_sarif_formatter-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for bandit_sarif_formatter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2b326efd0a489b00d7d88450ac31655bec94dc8721dddc05cda8a1f19113e03f
MD5 139e4744523075affb5c3bf7f50cbc6f
BLAKE2b-256 501238540b2b651cb1a336dadb47eebe3f31e7442260d0bab587ca2b8fa79785

See more details on using hashes here.

File details

Details for the file bandit_sarif_formatter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bandit_sarif_formatter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for bandit_sarif_formatter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7319c6143c30b2743840b22bc707587f1f35ce451d215edf77c4e56f797daae
MD5 324b7128264140d713a732a263f39402
BLAKE2b-256 03df4dbcc8dc4d8b2f2a3d8b21e5aa29e3fd853b7bd205067781f2fd10e9baa1

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