pycqa/Bandit by PyCQA
The official Bandit Action developed by PyCQA
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 18, 2026
- License
- Apache 2.0
Pinned Snippet
uses: pycqa/bandit-action@67a458d90fa11fb1463e91e7f4c8f068b5863c7f # v1.0.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| python-version | Version of Python to use | no | 3.9 |
| configfile | Optional config file to use for selecting plugins and overriding defaults | no | DEFAULT |
| profile | Profile to use (defaults to executing all tests) | no | DEFAULT |
| tests | Comma-separated list of test IDs to run | no | DEFAULT |
| skips | Comma-separated list of test IDs to skip | no | DEFAULT |
| severity | Report only issues of a given severity level or higher. "all" and "low" are likely to produce the same results, but it is possible for rules to be undefined which will not be listed in "low". Options include: {all, high, medium, low} | no | DEFAULT |
| confidence | Report only issues of a given confidence level or higher. "all" and "low" are likely to produce the same results, but it is possible for rules to be undefined which will not be listed in "low". Options include: {all, high, medium, low} | no | DEFAULT |
| exclude | Comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) | no | .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg |
| baseline | Path of a baseline report to compare against (only JSON-formatted files are accepted) | no | DEFAULT |
| ini | Path to a .bandit file that supplies command line arguments | no | DEFAULT |
| targets | Source file(s) or directory(s) to be tested | yes | . |
Outputs
no outputs