Giter Site home page Giter Site logo

bandit-sarif-formatter's Introduction

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 [email protected] with any additional questions or comments.

bandit-sarif-formatter's People

Contributors

microsoftopensource avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bandit-sarif-formatter's Issues

Consider adding CWE information to output

Bandit will soon ship version 1.7.3 which supports CWE information about a particular vulnerability found. All of the formatters that are part of the base Bandit code have been updated to include CWE info. It would be very useful for this SARIF formatter to do the same.

Section 3.7.2.1 General of https://docs.oasis-open.org/sarif/sarif/v2.0/csprd01/sarif-v2.0-csprd01.html specifically talks about how CWE information could be added in SARIF format.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.