pycqa/Bandit by PyCQA

The official Bandit Action developed by PyCQA

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 18, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: pycqa/bandit-action@67a458d90fa11fb1463e91e7f4c8f068b5863c7f # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
python-versionVersion of Python to use no3.9
configfileOptional config file to use for selecting plugins and overriding defaults noDEFAULT
profileProfile to use (defaults to executing all tests) noDEFAULT
testsComma-separated list of test IDs to run noDEFAULT
skipsComma-separated list of test IDs to skip noDEFAULT
severityReport 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} noDEFAULT
confidenceReport 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} noDEFAULT
excludeComma-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
baselinePath of a baseline report to compare against (only JSON-formatted files are accepted) noDEFAULT
iniPath to a .bandit file that supplies command line arguments noDEFAULT
targetsSource file(s) or directory(s) to be tested yes.

no outputs