
Bandit è uno strumento progettato per trovare problemi di sicurezza comuni nel codice Python.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png :alt: Bandit
======
.. image:: https://github.com/PyCQA/bandit/actions/workflows/pythonpackage.yml/badge.svg?branch=main :target: https://github.com/PyCQA/bandit/actions?query=workflow%3A%22Build+and+Test+Bandit%22+branch%3Amain :alt: Build Status
.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest :target: https://readthedocs.org/projects/bandit/ :alt: Docs Status
.. image:: https://img.shields.io/pypi/v/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Latest Version
.. image:: https://img.shields.io/pypi/pyversions/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Python Versions
.. image:: https://img.shields.io/pypi/format/bandit.svg :target: https://pypi.org/project/bandit/ :alt: Format
.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg :target: https://github.com/PyCQA/bandit/blob/main/LICENSE :alt: License
.. image:: https://img.shields.io/discord/825463413634891776.svg :target: https://discord.gg/qYxpadCgkx :alt: Discord
Un linter di sicurezza di PyCQA
Bandit è uno strumento progettato per trovare problemi di sicurezza comuni nel codice Python. Per farlo Bandit elabora ogni file, costruisce un AST e esegue plugin appropriati sui nodi AST. Una volta che Bandit ha finito di scansionare tutti i file genera un report.
Bandit è stato originariamente sviluppato all'interno dell'OpenStack Security Project e successivamente trasferito a PyCQA.
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png :alt: Schermata di esempio di Bandit
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: Security Status
Usa il nostro badge nel README del tuo progetto!
usando Markdown::
[](https://github.com/PyCQA/bandit)
usando RST::
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
:target: https://github.com/PyCQA/bandit
:alt: Security Status
Documentazione del modulo AST di Python: https://docs.python.org/3/library/ast.html
Green Tree Snakes - la documentazione AST di Python mancante: https://greentreesnakes.readthedocs.org/en/latest/
Documentazione dei vari tipi di nodi AST che Bandit attualmente copre o potrebbe essere esteso a coprire: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Bandit è disponibile come immagine container, costruita all'interno del repository di bandit utilizzando GitHub Actions. L'immagine è disponibile su ghcr.io:
.. code-block:: console
docker pull ghcr.io/pycqa/bandit/bandit
L'immagine è costruita per le seguenti architetture:
Per ottenere un'architettura specifica, usa il seguente formato:
.. code-block:: console
docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest
Ogni immagine è firmata con sigstore cosign ed è possibile verificare la fonte di origine usando il seguente comando cosign:
.. code-block:: console
cosign verify ghcr.io/pycqa/bandit/bandit:latest \
--certificate-identity https://github.com/pycqa/bandit/.github/workflows/build-publish-image.yml@refs/tags/<version> \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Dove <version> è la versione di rilascio di Bandit.
Lo sviluppo di Bandit è reso possibile dai seguenti sponsor:
.. list-table:: :width: 100% :class: borderless
.. image:: https://avatars.githubusercontent.com/u/34240465?s=200&v=4 :target: https://opensource.mercedes-benz.com/ :alt: Mercedes-Benz :width: 88
.. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg :target: https://tidelift.com/lifter/search/pypi/bandit :alt: Tidelift :width: 88
.. image:: https://avatars.githubusercontent.com/u/110237746?s=200&v=4 :target: https://stacklok.com/ :alt: Stacklok :width: 88
Se anche tu ❤️ Bandit, considera di fare una sponsorizzazione.