{"id":13539190,"url":"https://github.com/pycqa/bandit","last_synced_at":"2025-05-12T20:44:15.167Z","repository":{"id":37458366,"uuid":"131129792","full_name":"PyCQA/bandit","owner":"PyCQA","description":"Bandit is a tool designed to find common security issues in Python code.","archived":false,"fork":false,"pushed_at":"2025-04-28T14:41:45.000Z","size":5895,"stargazers_count":6937,"open_issues_count":191,"forks_count":637,"subscribers_count":70,"default_branch":"main","last_synced_at":"2025-05-05T16:05:46.549Z","etag":null,"topics":["bandit","linter","python","security","security-scanner","security-tools","static-code-analysis"],"latest_commit_sha":null,"homepage":"https://bandit.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PyCQA.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://psfmember.org/civicrm/contribute/transact/?reset=1\u0026id=42"],"github":["ericwb"],"tidelift":"pypi/bandit"}},"created_at":"2018-04-26T09:08:12.000Z","updated_at":"2025-05-05T15:43:35.000Z","dependencies_parsed_at":"2023-12-21T19:44:40.837Z","dependency_job_id":"4481be3e-de4c-4cfe-9fbe-cc1f872f2eec","html_url":"https://github.com/PyCQA/bandit","commit_stats":{"total_commits":1026,"total_committers":183,"mean_commits":5.60655737704918,"dds":0.8469785575048733,"last_synced_commit":"67ba25122350e8db1e44ed33b3ecd1b05ca97be4"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyCQA%2Fbandit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyCQA%2Fbandit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyCQA%2Fbandit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyCQA%2Fbandit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyCQA","download_url":"https://codeload.github.com/PyCQA/bandit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253818370,"owners_count":21969153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bandit","linter","python","security","security-scanner","security-tools","static-code-analysis"],"created_at":"2024-08-01T09:01:21.492Z","updated_at":"2025-05-12T20:44:15.149Z","avatar_url":"https://github.com/PyCQA.png","language":"Python","readme":".. image:: https://raw.githubusercontent.com/pycqa/bandit/main/logo/logotype-sm.png\n    :alt: Bandit\n\n======\n\n.. image:: https://github.com/PyCQA/bandit/actions/workflows/pythonpackage.yml/badge.svg?branch=main\n    :target: https://github.com/PyCQA/bandit/actions?query=workflow%3A%22Build+and+Test+Bandit%22+branch%3Amain\n    :alt: Build Status\n\n.. image:: https://readthedocs.org/projects/bandit/badge/?version=latest\n    :target: https://readthedocs.org/projects/bandit/\n    :alt: Docs Status\n\n.. image:: https://img.shields.io/pypi/v/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Python Versions\n\n.. image:: https://img.shields.io/pypi/format/bandit.svg\n    :target: https://pypi.org/project/bandit/\n    :alt: Format\n\n.. image:: https://img.shields.io/badge/license-Apache%202-blue.svg\n    :target: https://github.com/PyCQA/bandit/blob/main/LICENSE\n    :alt: License\n\n.. image:: https://img.shields.io/discord/825463413634891776.svg\n    :target: https://discord.gg/qYxpadCgkx\n    :alt: Discord\n\nA security linter from PyCQA\n\n* Free software: Apache license\n* Documentation: https://bandit.readthedocs.io/en/latest/\n* Source: https://github.com/PyCQA/bandit\n* Bugs: https://github.com/PyCQA/bandit/issues\n* Contributing: https://github.com/PyCQA/bandit/blob/main/CONTRIBUTING.md\n\nOverview\n--------\n\nBandit is a tool designed to find common security issues in Python code. To do\nthis Bandit processes each file, builds an AST from it, and runs appropriate\nplugins against the AST nodes. Once Bandit has finished scanning all the files\nit generates a report.\n\nBandit was originally developed within the OpenStack Security Project and\nlater rehomed to PyCQA.\n\n.. image:: https://raw.githubusercontent.com/pycqa/bandit/main/bandit-terminal.png\n    :alt: Bandit Example Screen Shot\n\nShow Your Style\n---------------\n\n.. image:: https://img.shields.io/badge/security-bandit-yellow.svg\n    :target: https://github.com/PyCQA/bandit\n    :alt: Security Status\n\nUse our badge in your project's README!\n\nusing Markdown::\n\n    [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n\nusing RST::\n\n    .. image:: https://img.shields.io/badge/security-bandit-yellow.svg\n        :target: https://github.com/PyCQA/bandit\n        :alt: Security Status\n\nReferences\n----------\n\nPython AST module documentation: https://docs.python.org/3/library/ast.html\n\nGreen Tree Snakes - the missing Python AST docs:\nhttps://greentreesnakes.readthedocs.org/en/latest/\n\nDocumentation of the various types of AST nodes that Bandit currently covers\nor could be extended to cover:\nhttps://greentreesnakes.readthedocs.org/en/latest/nodes.html\n\nContainer Images\n----------------\n\nBandit is available as a container image, built within the bandit repository\nusing GitHub Actions. The image is available on ghcr.io:\n\n.. code-block:: console\n\n    docker pull ghcr.io/pycqa/bandit/bandit\n\nThe image is built for the following architectures:\n\n* amd64\n* arm64\n* armv7\n* armv8\n\nTo pull a specific architecture, use the following format:\n\n.. code-block:: console\n\n    docker pull --platform=\u003carchitecture\u003e ghcr.io/pycqa/bandit/bandit:latest\n\nEvery image is signed with sigstore cosign and it is possible to verify the\nsource of origin using the following cosign command:\n\n.. code-block:: console\n\n    cosign verify ghcr.io/pycqa/bandit/bandit:latest \\\n      --certificate-identity https://github.com/pycqa/bandit/.github/workflows/build-publish-image.yml@refs/tags/\u003cversion\u003e \\\n      --certificate-oidc-issuer https://token.actions.githubusercontent.com\n\nWhere `\u003cversion\u003e` is the release version of Bandit.\n\nSponsors\n--------\n\nThe development of Bandit is made possible by the following sponsors:\n\n.. list-table::\n   :width: 100%\n   :class: borderless\n\n   * - .. image:: https://avatars.githubusercontent.com/u/34240465?s=200\u0026v=4\n          :target: https://opensource.mercedes-benz.com/\n          :alt: Mercedes-Benz\n          :width: 88\n\n     - .. image:: https://github.githubassets.com/assets/tidelift-8cea37dea8fc.svg\n          :target: https://tidelift.com/lifter/search/pypi/bandit\n          :alt: Tidelift\n          :width: 88\n\n     - .. image:: https://avatars.githubusercontent.com/u/110237746?s=200\u0026v=4\n          :target: https://stacklok.com/\n          :alt: Stacklok\n          :width: 88\n\nIf you also ❤️ Bandit, please consider sponsoring.\n","funding_links":["https://psfmember.org/civicrm/contribute/transact/?reset=1\u0026id=42","https://github.com/sponsors/ericwb","https://tidelift.com/funding/github/pypi/bandit","https://tidelift.com/lifter/search/pypi/bandit"],"categories":["\u003ca id=\"eb2d1ffb231cee014ed24d59ca987da2\"\u003e\u003c/a\u003e未分类-XxTarget"],"sub_categories":["\u003ca id=\"0476f6b97e87176da0a0d7328f8747e7\"\u003e\u003c/a\u003eblog"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycqa%2Fbandit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycqa%2Fbandit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycqa%2Fbandit/lists"}