Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
shield

GitHub Action

Bandit security linter

v5.1

Bandit security linter

shield

Bandit security linter

A security linter from PyCQA

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bandit security linter

uses: tj-actions/[email protected]

Learn more about this action in tj-actions/bandit

Choose a version

Codacy Badge CI Update release version. Public workflows that use this action.

Ubuntu Mac OS

All Contributors

bandit

bandit is a security linter from PyCQA

Usage

Minimal version

...
    steps:
      - uses: actions/checkout@v2
      - name: Run bandit
        uses: tj-actions/bandit@v5

Using inputs

...
    steps:
      - uses: actions/checkout@v2
      - name: Run bandit
        uses: tj-actions/bandit@v5
        with:
          targets: |  # or a single string "." 
            test_package
          options: "-r"

If you feel generous and want to show some extra appreciation:

Support this project with a ⭐

Buy me a coffee

Inputs

Input type required default description
targets string[] or string true . Targets to run bandit checks
options string true -r Extra options (possible choices)

Example

Screen Shot 2021-09-05 at 8 59 35 PM

Credits

This package was created with Cookiecutter.

Report Bugs

Report bugs at https://github.com/tj-actions/bandit/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

TODO

  • Add support for running action on Windows

Contributors ✨

Thanks goes to these wonderful people (emoji key):


tlacroix

💻

This project follows the all-contributors specification. Contributions of any kind welcome!