
Banditは、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
PyCQA のセキュリティリンター
Bandit は Python コードにおける一般的なセキュリティ問題を検出するために設計されたツールです。各ファイルを処理し、AST を構築し、AST ノードに対して適切なプラグインを実行します。すべてのファイルのスキャンが完了するとレポートを生成します。Bandit は元々 OpenStack Security Project 内で開発され、その後 PyCQA に移管されました。
.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png :alt: Bandit Example Screen Shot
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg :target: https://github.com/PyCQA/bandit :alt: Security Status
プロジェクトの README で私たちのバッジを使用してください!
Markdown を使用::
[](https://github.com/PyCQA/bandit)
RST を使用::
.. image:: https://img.shields.io/badge/security-bandit-yellow.svg
:target: https://github.com/PyCQA/bandit
:alt: Security Status
Python AST モジュールドキュメント: https://docs.python.org/3/library/ast.html
Green Tree Snakes - 不足している Python AST ドキュメント: https://greentreesnakes.readthedocs.org/en/latest/
Bandit が現在カバーしている、またはカバーするように拡張できるさまざまな種類の AST ノードのドキュメント: https://greentreesnakes.readthedocs.org/en/latest/nodes.html
Bandit は GitHub Actions を使用して bandit リポジトリ内でビルドされたコンテナイメージとして利用可能です。イメージは ghcr.io で入手できます:
.. code-block:: console
docker pull ghcr.io/pycqa/bandit/bandit
イメージは以下のアーキテクチャ向けにビルドされています:
特定のアーキテクチャをプルするには、次の形式を使用します:
.. code-block:: console
docker pull --platform=<architecture> ghcr.io/pycqa/bandit/bandit:latest
すべてのイメージは sigstore cosign で署名されており、以下の 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
ここで <version> は Bandit のリリースバージョンです。
Bandit の開発は以下のスポンサーによって支えられています:
.. 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
もしあなたも Bandit を ❤️ しているなら、スポンサーになることを検討してください。