Skip to main content

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.org 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.

Release files for bandit-sarif-formatter 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bandit-sarif-formatter 1.1.1
File Size Uploaded
bandit_sarif_formatter-1.1.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bandit-sarif-formatter 1.1.1
File Interpreter ABI Platform
bandit_sarif_formatter-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / bandit_sarif_formatter-1.1.1.tar.gz

Download URL bandit_sarif_formatter-1.1.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2b6299617c559e41cccf4c9cdf0724dbfc9dc276ecbd94c28074db0d3363ef72
BLAKE2b-256 checksum
How to use checksums
a12dfa7f7769e487ec03a28a62b780f1c0a2e788359ef1a18b8a62744d42ee43
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / bandit_sarif_formatter-1.1.1-py3-none-any.whl

Download URL bandit_sarif_formatter-1.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a8351cecc03b265ec7546794b9c54a988d0b7282db544de913dc6c5a46a50fb
BLAKE2b-256 checksum
How to use checksums
d59d4e633743766b159d20cca63fc56c0817633d0f99c49607d72b796a386d46
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page